diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-07-12 19:57:01 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-07-12 19:57:01 +0200 |
commit | fde1d3399d0d51250c31315dca4cbc9044d36b9d (patch) | |
tree | 19e1afef9e8803f19f4f446a68303c5870e238f2 /lib/web/urlfilter/adblockrule.h | |
parent | WebView: add Open in new tab and Save actions for images (diff) | |
download | smolbote-fde1d3399d0d51250c31315dca4cbc9044d36b9d.tar.xz |
AdBlockRule: parse some options
Diffstat (limited to 'lib/web/urlfilter/adblockrule.h')
-rw-r--r-- | lib/web/urlfilter/adblockrule.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/web/urlfilter/adblockrule.h b/lib/web/urlfilter/adblockrule.h index e1cabae..a08fbb7 100644 --- a/lib/web/urlfilter/adblockrule.h +++ b/lib/web/urlfilter/adblockrule.h @@ -24,6 +24,7 @@ public: AdBlockRule(const QString &filter); bool isEnabled() const; + bool matches(QWebEngineUrlRequestInfo::ResourceType type) const; bool shouldBlock(const QUrl &url) const; private: @@ -34,6 +35,7 @@ private: MatchType matchType = InvalidMatch; QHash<QWebEngineUrlRequestInfo::ResourceType, bool> m_resourceTypeOptions; + QStringList allowedDomains, blockedDomains; QString match; QRegularExpression regexp; |