summaryrefslogtreecommitdiff
path: root/src/adblock/adblockrulefallbackimpl.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-08-23 00:05:18 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-08-23 00:05:18 +0200
commita0fe09d63b05d7198ebe013f1d6be9097a0acf65 (patch)
tree2c7907ef79d4f07b0aa26b206ffd8d0bbf9e5eaa /src/adblock/adblockrulefallbackimpl.h
parentMerge commit 'refs/merge-requests/185' of git://gitorious.org/rekonq/mainline... (diff)
parentAdd support for domain option in the ad block module (diff)
downloadrekonq-a0fe09d63b05d7198ebe013f1d6be9097a0acf65.tar.xz
Merge commit 'refs/merge-requests/186' of git://gitorious.org/rekonq/mainline into m186
Diffstat (limited to 'src/adblock/adblockrulefallbackimpl.h')
-rw-r--r--src/adblock/adblockrulefallbackimpl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/adblock/adblockrulefallbackimpl.h b/src/adblock/adblockrulefallbackimpl.h
index ed0f6dc6..8cb02e10 100644
--- a/src/adblock/adblockrulefallbackimpl.h
+++ b/src/adblock/adblockrulefallbackimpl.h
@@ -31,17 +31,20 @@
// Qt Includes
#include <QRegExp>
#include <QString>
+#include <QSet>
class AdBlockRuleFallbackImpl : public AdBlockRuleImpl
{
public:
AdBlockRuleFallbackImpl(const QString &filter);
- bool match(const QString &encodedUrl, const QString &encodedUrlLowerCase) const;
+ bool match(const QNetworkRequest &request, const QString &encodedUrl, const QString &encodedUrlLowerCase) const;
private:
QString convertPatternToRegExp(const QString &wildcardPattern);
QRegExp m_regExp;
+ QSet<QString> m_whiteDomains;
+ QSet<QString> m_blackDomains;
};
#endif // ADBLOCKRULEFALLBACKIMPL_H