| Index: src/plugin/AdblockPlusClient.h |
| diff --git a/src/plugin/AdblockPlusClient.h b/src/plugin/AdblockPlusClient.h |
| index cbb384bacb1de3fe654df9d4e42f974b8811ec69..b4da3a0c27e2ffab960cadbd303657770852c979 100644 |
| --- a/src/plugin/AdblockPlusClient.h |
| +++ b/src/plugin/AdblockPlusClient.h |
| @@ -71,7 +71,15 @@ public: |
| bool ShouldBlock(const std::wstring& src, AdblockPlus::FilterEngine::ContentType contentType, const std::wstring& domain, bool addDebug=false); |
| bool IsElementHidden(const std::wstring& tag, IHTMLElement* pEl, const std::wstring& domain, const std::wstring& indent, CPluginFilter* filter); |
| - bool IsWhitelistedUrl(const std::wstring& url); |
| + struct ExceptionFilter |
|
Eric
2015/03/04 13:55:39
I am generally in favor of adding simple classes l
|
| + { |
| + operator bool() const |
| + { |
| + return !filterText.empty(); |
| + } |
| + std::string filterText; |
| + }; |
| + ExceptionFilter IsWhitelistedUrl(const std::wstring& url); |
|
Oleksandr
2015/03/05 07:35:27
How about:
bool IsWhitelistedUrl(const std::wstri
|
| bool IsElemhideWhitelistedOnDomain(const std::wstring& url); |
| bool Matches(const std::wstring& url, AdblockPlus::FilterEngine::ContentType contentType, const std::wstring& domain); |
| @@ -86,6 +94,7 @@ public: |
| std::vector<std::wstring> GetExceptionDomains(); |
| void AddFilter(const std::wstring& text); |
| void RemoveFilter(const std::wstring& text); |
| + void RemoveFilter(const std::string& text); |
| void SetPref(const std::wstring& name, const std::wstring& value); |
| void SetPref(const std::wstring& name, const int64_t& value); |
| void SetPref(const std::wstring& name, bool value); |