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

Unified Diff: src/engine/Main.cpp

Issue 4784041706389504: Issue 1183 - Fix Acceptable Ads hiding (Closed)
Patch Set: More addressing comments Created Aug. 8, 2014, 4:54 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') | no next file with comments »
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
@@ -196,6 +196,14 @@
response << (match && match->GetType() == AdblockPlus::Filter::TYPE_EXCEPTION);
break;
}
+ case Communication::PROC_IS_ELEMHIDE_WHITELISTED_ON_URL:
+ {
+ std::string url;
+ request >> url;
+ AdblockPlus::FilterPtr match = filterEngine->Matches(url, "ELEMHIDE", 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld