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

Unified Diff: src/engine/main.cpp

Issue 11300014: Injecting libadblockplus into IE (Closed)
Patch Set: Created July 29, 2013, 5:30 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
Index: src/engine/main.cpp
===================================================================
--- a/src/engine/main.cpp
+++ b/src/engine/main.cpp
@@ -238,7 +238,21 @@
}
break;
}
+ case Communication::PROC_GET_REQUIRE:
+ {
+ std::string name;
+ request >> name;
+ std::string requireContent = filterEngine->GetRequire(name);
+ if (requireContent.length() > 0)
+ {
+ response << true;
+ response << requireContent;
+ break;
+ }
+ response << false;
+ break;
+ }
}
return response;
}

Powered by Google App Engine
This is Rietveld