diff options
Diffstat (limited to 'src/webengine/urlinterceptor.h')
-rw-r--r-- | src/webengine/urlinterceptor.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/webengine/urlinterceptor.h b/src/webengine/urlinterceptor.h index 7834430..31f1256 100644 --- a/src/webengine/urlinterceptor.h +++ b/src/webengine/urlinterceptor.h @@ -2,20 +2,23 @@ #define ADBLOCKINTERCEPTOR_H #include <QWebEngineUrlRequestInterceptor> +#include "blockersubscription.h" -class AdBlockInterceptor : public QWebEngineUrlRequestInterceptor +class UrlRequestInterceptor : public QWebEngineUrlRequestInterceptor { Q_OBJECT public: - explicit AdBlockInterceptor(QObject *parent = 0); + explicit UrlRequestInterceptor(QObject *parent = 0); void interceptRequest(QWebEngineUrlRequestInfo &info); + void setSubscription(BlockerSubscription *subscription); signals: public slots: private: + BlockerSubscription *m_sub; }; #endif // ADBLOCKINTERCEPTOR_H |