]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/interceptors/UrlRequestInterceptor.h
Make the Request Details dialog scrollable. https://redmine.stoutner.com/issues...
[PrivacyBrowserPC.git] / src / interceptors / UrlRequestInterceptor.h
index 721d5231b3508deaea545650b29e94c77cbf5e2c..06e450db43ad7a579c60dbb734230d2d3524ab1a 100644 (file)
@@ -1,7 +1,7 @@
 /*
- * Copyright © 2022 Soren Stoutner <soren@stoutner.com>.
+ * Copyright 2022-2024 Soren Stoutner <soren@stoutner.com>.
  *
- * This file is part of Privacy Browser PC <https://www.stoutner.com/privacy-browser-pc>.
+ * This file is part of Privacy Browser PC <https://www.stoutner.com/privacy-browser-pc/>.
  *
  * Privacy Browser PC is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * along with Privacy Browser PC.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef URLREQUESTINTERCEPTOR_H
-#define URLREQUESTINTERCEPTOR_H
+#ifndef URL_REQUEST_INTERCEPTOR_H
+#define URL_REQUEST_INTERCEPTOR_H
+
+// Application headers.
+#include "structs/RequestStruct.h"
+#include "widgets/PrivacyWebEngineView.h"
 
 // Qt framework headers.
 #include <QtWebEngineCore>
@@ -30,13 +34,20 @@ class UrlRequestInterceptor : public QWebEngineUrlRequestInterceptor
 
 public:
     // The default constructor.
-    UrlRequestInterceptor(QObject *parentObjectPointer = 0);
+    UrlRequestInterceptor(PrivacyWebEngineView *privacyWebEngineViewPointer);
 
     // The public functions.
     void interceptRequest(QWebEngineUrlRequestInfo &urlRequestInfo) override;
 
 signals:
     // The signals.
-    void applyDomainSettings(const QString hostname) const;
+    void applyDomainSettings(const QString &hostname) const;
+    void displayHttpPingDialog(const QString &httpPingUrl) const;
+    void newMainFrameResource() const;
+    void requestProcessed(RequestStruct *requestStruct) const;
+
+private:
+    // The private variables.
+    PrivacyWebEngineView *privacyWebEngineViewPointer;
 };
 #endif