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

Unified Diff: src/plugin/AdblockPlusClient.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/plugin/AdblockPlusClient.cpp
===================================================================
--- a/src/plugin/AdblockPlusClient.cpp
+++ b/src/plugin/AdblockPlusClient.cpp
@@ -397,7 +397,7 @@
Communication::InputBuffer response;
if (!CallEngine(request, response)) return defaultValue;
- bool success;
+ bool success;
response >> success;
if (success)
{
@@ -408,3 +408,20 @@
else
return defaultValue;
}
+
+std::wstring CAdblockPlusClient::GetRequire(const std::wstring& name)
+{
+ Communication::OutputBuffer request;
+ request << Communication::PROC_GET_REQUIRE << ToUtf8String(name);
+
+ Communication::InputBuffer response;
+ if (!CallEngine(request, response)) return L"";
+ bool success;
+ response >> success;
+ std::string responseContent;
+ if (success)
+ {
+ response >> responseContent;
+ }
+ return ToUtf16String(responseContent);
+}

Powered by Google App Engine
This is Rietveld