diff options
Diffstat (limited to 'src/webengine/urlinterceptor.h')
-rw-r--r-- | src/webengine/urlinterceptor.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/webengine/urlinterceptor.h b/src/webengine/urlinterceptor.h index 95e96e2..af0bf35 100644 --- a/src/webengine/urlinterceptor.h +++ b/src/webengine/urlinterceptor.h @@ -10,13 +10,16 @@ #define URLREQUESTINTERCEPTOR_H #include <QWebEngineUrlRequestInterceptor> -#include <vector> -#include "hostrule.h" class UrlRequestInterceptor : public QWebEngineUrlRequestInterceptor { Q_OBJECT public: + + struct HostRule { + bool isBlocking; + }; + explicit UrlRequestInterceptor(const QString &path, QObject *parent = nullptr); ~UrlRequestInterceptor(); @@ -26,7 +29,7 @@ public slots: int parseHostfile(const QString &filename); private: - std::vector<HostRule*> m_rules; + QHash<QString, HostRule*> m_rules; }; #endif // URLREQUESTINTERCEPTOR_H |