Index: src/engine/main.cpp |
=================================================================== |
--- a/src/engine/main.cpp |
+++ b/src/engine/main.cpp |
@@ -120,6 +120,14 @@ |
WriteStrings(response, domains); |
break; |
} |
+ case Communication::PROC_IS_WHITELISTED_URL: |
+ { |
+ std::string url; |
+ request >> url; |
+ AdblockPlus::FilterPtr match = filterEngine->Matches(url, "DOCUMENT", ""); |
Wladimir Palant
2013/06/25 11:55:13
Please use url as the document URL parameter as we
|
+ response << (match && match->GetType() == AdblockPlus::Filter::TYPE_EXCEPTION); |
+ break; |
+ } |
case Communication::PROC_ADD_FILTER: |
{ |
std::string text; |