Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/engine/main.cpp

Issue 10955040: Fix domain whitelisting and remove unused code (Closed)
Patch Set: Addressed all issues Created June 25, 2013, 2:19 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/plugin/AdblockPlusClient.h » ('j') | src/plugin/AdblockPlusClient.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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", url);
+ response << (match && match->GetType() == AdblockPlus::Filter::TYPE_EXCEPTION);
+ break;
+ }
case Communication::PROC_ADD_FILTER:
{
std::string text;
« no previous file with comments | « no previous file | src/plugin/AdblockPlusClient.h » ('j') | src/plugin/AdblockPlusClient.cpp » ('J')

Powered by Google App Engine
This is Rietveld