diff 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; |