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

Side by Side Diff: src/plugin/AdblockPlusClient.cpp

Issue 5994126579335168: Noissue - Remove a dead inheritance and some dead code (Closed)
Patch Set: Remove comment Created Feb. 27, 2015, 4:47 p.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/Config.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 message >> specialization; 144 message >> specialization;
145 description.specialization = ToUtf16String(specialization); 145 description.specialization = ToUtf16String(specialization);
146 message >> description.listed; 146 message >> description.listed;
147 result.push_back(description); 147 result.push_back(description);
148 } 148 }
149 return result; 149 return result;
150 } 150 }
151 } 151 }
152 152
153 CAdblockPlusClient* CAdblockPlusClient::s_instance = NULL; 153 CAdblockPlusClient* CAdblockPlusClient::s_instance = NULL;
154 CComAutoCriticalSection CAdblockPlusClient::s_criticalSectionLocal;
154 155
155 CAdblockPlusClient::CAdblockPlusClient() : CPluginClientBase() 156 CAdblockPlusClient::CAdblockPlusClient()
156 { 157 {
157 m_filter = std::auto_ptr<CPluginFilter>(new CPluginFilter()); 158 m_filter = std::auto_ptr<CPluginFilter>(new CPluginFilter());
158 } 159 }
159 160
160 bool CAdblockPlusClient::CallEngine(Communication::OutputBuffer& message, Commun ication::InputBuffer& inputBuffer) 161 bool CAdblockPlusClient::CallEngine(Communication::OutputBuffer& message, Commun ication::InputBuffer& inputBuffer)
161 { 162 {
162 DEBUG_GENERAL("CallEngine start"); 163 DEBUG_GENERAL("CallEngine start");
163 CriticalSection::Lock lock(enginePipeLock); 164 CriticalSection::Lock lock(enginePipeLock);
164 try 165 try
165 { 166 {
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 DEBUG_GENERAL("CompareVersions"); 558 DEBUG_GENERAL("CompareVersions");
558 Communication::OutputBuffer request; 559 Communication::OutputBuffer request;
559 request << Communication::PROC_COMPARE_VERSIONS << ToUtf8String(v1) << ToUtf8S tring(v2); 560 request << Communication::PROC_COMPARE_VERSIONS << ToUtf8String(v1) << ToUtf8S tring(v2);
560 Communication::InputBuffer response; 561 Communication::InputBuffer response;
561 if (!CallEngine(request, response)) 562 if (!CallEngine(request, response))
562 return 0; 563 return 0;
563 int result; 564 int result;
564 response >> result; 565 response >> result;
565 return result; 566 return result;
566 } 567 }
OLDNEW
« no previous file with comments | « src/plugin/AdblockPlusClient.h ('k') | src/plugin/Config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld