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); |
+} |