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

Unified Diff: src/plugin/AdblockPlusClient.cpp

Issue 5652794446970880: Rely on libadblockplus for domain extraction (Closed)
Patch Set: Use libadblockplus for domain extraction in APP as well Created April 22, 2014, 7:48 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 | « src/plugin/AdblockPlusClient.h ('k') | src/plugin/PluginClass.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/AdblockPlusClient.cpp
===================================================================
--- a/src/plugin/AdblockPlusClient.cpp
+++ b/src/plugin/AdblockPlusClient.cpp
@@ -543,3 +543,16 @@
response >> currentEnabledState;
return currentEnabledState;
}
+std::wstring CAdblockPlusClient::GetHostFromUrl(const std::wstring& url)
Felix Dahlke 2014/06/24 15:13:48 One empty line above the function header for consi
+{
+ DEBUG_GENERAL("GetHostFromUrl");
+ Communication::OutputBuffer request;
+ request << Communication::PROC_GET_HOST << ToUtf8String(url);
+
+ Communication::InputBuffer response;
+ if (!CallEngine(request, response))
+ return L"";
+ std::string host;
+ response >> host;
+ return ToUtf16String(host);
+}
« no previous file with comments | « src/plugin/AdblockPlusClient.h ('k') | src/plugin/PluginClass.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld