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

Side by Side 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.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/plugin/AdblockPlusClient.h ('k') | src/plugin/PluginClass.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include "PluginStdAfx.h" 1 #include "PluginStdAfx.h"
2 #include "PluginSettings.h" 2 #include "PluginSettings.h"
3 #include "PluginSystem.h" 3 #include "PluginSystem.h"
4 #include "PluginFilter.h" 4 #include "PluginFilter.h"
5 #include "PluginClientFactory.h" 5 #include "PluginClientFactory.h"
6 #include "PluginMutex.h" 6 #include "PluginMutex.h"
7 #include "PluginClass.h" 7 #include "PluginClass.h"
8 8
9 #include "AdblockPlusClient.h" 9 #include "AdblockPlusClient.h"
10 10
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 bool CAdblockPlusClient::TogglePluginEnabled() 536 bool CAdblockPlusClient::TogglePluginEnabled()
537 { 537 {
538 DEBUG_GENERAL("TogglePluginEnabled"); 538 DEBUG_GENERAL("TogglePluginEnabled");
539 Communication::InputBuffer response; 539 Communication::InputBuffer response;
540 if (!CallEngine(Communication::PROC_TOGGLE_PLUGIN_ENABLED, response)) 540 if (!CallEngine(Communication::PROC_TOGGLE_PLUGIN_ENABLED, response))
541 return false; 541 return false;
542 bool currentEnabledState; 542 bool currentEnabledState;
543 response >> currentEnabledState; 543 response >> currentEnabledState;
544 return currentEnabledState; 544 return currentEnabledState;
545 } 545 }
546 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
547 {
548 DEBUG_GENERAL("GetHostFromUrl");
549 Communication::OutputBuffer request;
550 request << Communication::PROC_GET_HOST << ToUtf8String(url);
551
552 Communication::InputBuffer response;
553 if (!CallEngine(request, response))
554 return L"";
555 std::string host;
556 response >> host;
557 return ToUtf16String(host);
558 }
OLDNEW
« 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