From d886b377ac168d32668b5f3d145279a4f64de730 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Mon, 23 Jan 2017 15:42:14 +0100 Subject: URL blocking --- src/webengine/adblockinterceptor.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/webengine/adblockinterceptor.h (limited to 'src/webengine/adblockinterceptor.h') diff --git a/src/webengine/adblockinterceptor.h b/src/webengine/adblockinterceptor.h new file mode 100644 index 0000000..061b626 --- /dev/null +++ b/src/webengine/adblockinterceptor.h @@ -0,0 +1,25 @@ +#ifndef ADBLOCKINTERCEPTOR_H +#define ADBLOCKINTERCEPTOR_H + +#include +#include "adblockrule.h" + +class AdBlockInterceptor : public QWebEngineUrlRequestInterceptor +{ + Q_OBJECT +public: + explicit AdBlockInterceptor(QObject *parent = 0); + + void interceptRequest(QWebEngineUrlRequestInfo &info); + + int loadSubscription(const QString &subpath); + +signals: + +public slots: + +private: + QList m_urlBlacklist; +}; + +#endif // ADBLOCKINTERCEPTOR_H -- cgit v1.2.1