From f28c7dc42b6b6924e01b4b97736a89acdaddb244 Mon Sep 17 00:00:00 2001 From: Paul Rohrbach Date: Tue, 30 Jul 2013 21:15:24 +0200 Subject: Adding domain-specific hiding support to the adblocker. The domain-specific rules are stored in a QMultiHash, where the key is the domain and the values are the rules for the specified domain. This causes redundancy, because on rule can be applied to more than one domain, but has a really fast look-up time. The code for the generic hiding has not changed and is just relocated. REVIEW: 111521 REVIEWED-BY: adjam --- src/adblock/adblockmanager.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/adblock/adblockmanager.h') diff --git a/src/adblock/adblockmanager.h b/src/adblock/adblockmanager.h index 3d329ad8..f65abe71 100644 --- a/src/adblock/adblockmanager.h +++ b/src/adblock/adblockmanager.h @@ -125,6 +125,7 @@ #include "rekonq_defines.h" // Local Includes +#include "adblockelementhiding.h" #include "adblockhostmatcher.h" #include "adblockrule.h" @@ -188,7 +189,7 @@ private Q_SLOTS: void applyHidingRules(QWebFrame *); void applyHidingRules(bool); - + Q_SIGNALS: void reloadCurrentPage(); @@ -200,8 +201,8 @@ private: AdBlockHostMatcher _hostWhiteList; AdBlockRuleList _blackList; AdBlockRuleList _whiteList; - - QStringList _hideList; + + AdBlockElementHiding _elementHiding; KSharedConfig::Ptr _adblockConfig; -- cgit v1.2.1