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

Delta Between Two Patch Sets: src/plugin/AdblockPlusClient.cpp

Issue 11369200: Disable everywhere fix (Closed)
Left Patch Set: Created Aug. 13, 2013, 2:18 p.m.
Right Patch Set: TogglePluginEnabled transfered to engine Created Aug. 20, 2013, 7:34 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/plugin/AdblockPlusClient.h ('k') | src/plugin/PluginSettings.h » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 #include "PluginStdAfx.h" 1 #include "PluginStdAfx.h"
2 2
3 #include "PluginSettings.h" 3 #include "PluginSettings.h"
4 #include "PluginSystem.h" 4 #include "PluginSystem.h"
5 #include "PluginFilter.h" 5 #include "PluginFilter.h"
6 #include "PluginClientFactory.h" 6 #include "PluginClientFactory.h"
7 #include "PluginMutex.h" 7 #include "PluginMutex.h"
8 #include "PluginClass.h" 8 #include "PluginClass.h"
9 9
10 #include "AdblockPlusClient.h" 10 #include "AdblockPlusClient.h"
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 std::wstring CAdblockPlusClient::GetDocumentationLink() 449 std::wstring CAdblockPlusClient::GetDocumentationLink()
450 { 450 {
451 DEBUG_GENERAL("GetDocumentationLink"); 451 DEBUG_GENERAL("GetDocumentationLink");
452 Communication::InputBuffer response; 452 Communication::InputBuffer response;
453 if (!CallEngine(Communication::PROC_GET_DOCUMENTATION_LINK, response)) 453 if (!CallEngine(Communication::PROC_GET_DOCUMENTATION_LINK, response))
454 return L""; 454 return L"";
455 std::wstring docLink; 455 std::wstring docLink;
456 response >> docLink; 456 response >> docLink;
457 return docLink; 457 return docLink;
458 } 458 }
459
460 bool CAdblockPlusClient::TogglePluginEnabled()
461 {
462 DEBUG_GENERAL("TogglePluginEnabled");
463 Communication::InputBuffer response;
464 if (!CallEngine(Communication::PROC_TOGGLE_PLUGIN_ENABLED, response))
465 return false;
466 bool currentEnabledState;
467 response >> currentEnabledState;
468 return currentEnabledState;
469 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld