diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-01-27 17:14:49 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-01-27 17:14:49 +0100 |
commit | ed7430d2352b3f87991f68fbc0acfe4dbae39b56 (patch) | |
tree | bd6d9d0c3c0f6e66131f581bed978c49febada7f /src/webengine/urlinterceptor.h | |
parent | Blocker UI (diff) | |
download | smolbote-ed7430d2352b3f87991f68fbc0acfe4dbae39b56.tar.xz |
URL blocking whitelist
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 |