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: Created June 25, 2013, 10:21 a.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.cpp » ('j') | src/plugin/PluginTabBase.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", "");
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;
« no previous file with comments | « no previous file | src/plugin/AdblockPlusClient.cpp » ('j') | src/plugin/PluginTabBase.cpp » ('J')

Powered by Google App Engine
This is Rietveld