diff options
Diffstat (limited to 'src/webengine/adblockinterceptor.h')
-rw-r--r-- | src/webengine/adblockinterceptor.h | 25 |
1 files changed, 25 insertions, 0 deletions
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 <QWebEngineUrlRequestInterceptor> +#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<AdBlockRule*> m_urlBlacklist; +}; + +#endif // ADBLOCKINTERCEPTOR_H |