aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/urlinterceptor.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-01-27 17:14:49 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-01-27 17:14:49 +0100
commited7430d2352b3f87991f68fbc0acfe4dbae39b56 (patch)
treebd6d9d0c3c0f6e66131f581bed978c49febada7f /src/webengine/urlinterceptor.h
parentBlocker UI (diff)
downloadsmolbote-ed7430d2352b3f87991f68fbc0acfe4dbae39b56.tar.xz
URL blocking whitelist
Diffstat (limited to 'src/webengine/urlinterceptor.h')
-rw-r--r--src/webengine/urlinterceptor.h7
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