#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