Left: | ||
Right: |
OLD | NEW |
---|---|
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 |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. | 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
16 */ | 16 */ |
17 | 17 |
18 #include "PluginStdAfx.h" | 18 #include "PluginStdAfx.h" |
19 | 19 |
20 #include <Wbemidl.h> | 20 #include <Wbemidl.h> |
21 #include <time.h> | 21 #include <time.h> |
22 #include "PluginSettings.h" | 22 #include "PluginSettings.h" |
23 #include "PluginClient.h" | 23 #include "AdblockPlusClient.h" |
24 #include "PluginSystem.h" | 24 #include "PluginSystem.h" |
25 #include "PluginFilter.h" | 25 #include "PluginFilter.h" |
26 #include "PluginMutex.h" | 26 #include "PluginMutex.h" |
27 #include "../shared/Utils.h" | 27 #include "../shared/Utils.h" |
28 #include <memory> | 28 #include <memory> |
Oleksandr
2015/03/19 04:39:32
Wbemidl.h, time.h, PluginFiter.h, memory.h all can
| |
29 | 29 |
30 | 30 |
31 // IE functions | 31 // IE functions |
32 #pragma comment(lib, "iepmapi.lib") | 32 #pragma comment(lib, "iepmapi.lib") |
33 | 33 |
34 #include <knownfolders.h> | 34 #include <knownfolders.h> |
Eric
2015/03/20 09:09:45
Not only all those, but this one too.
| |
35 | 35 |
36 namespace | 36 namespace |
37 { | 37 { |
38 std::wstring CreateDomainWhitelistingFilter(const CString& domain) | 38 std::wstring CreateDomainWhitelistingFilter(const CString& domain) |
39 { | 39 { |
40 return L"@@||" + ToWstring(domain) + L"^$document"; | 40 return L"@@||" + ToWstring(domain) + L"^$document"; |
41 } | 41 } |
42 } | 42 } |
43 | 43 |
44 class TSettings | 44 class TSettings |
Eric
2015/03/20 09:09:45
And I also noticed this class isn't used anywhere,
| |
45 { | 45 { |
46 DWORD processorId; | 46 DWORD processorId; |
47 | 47 |
48 char sPluginId[44]; | 48 char sPluginId[44]; |
49 }; | 49 }; |
50 | 50 |
51 class CPluginSettingsWhitelistLock : public CPluginMutex | 51 class CPluginSettingsWhitelistLock : public CPluginMutex |
52 { | 52 { |
53 public: | 53 public: |
54 CPluginSettingsWhitelistLock() : CPluginMutex(L"SettingsFileWhitelist", PLUGIN _ERROR_MUTEX_SETTINGS_FILE_WHITELIST) {} | 54 CPluginSettingsWhitelistLock() : CPluginMutex(L"SettingsFileWhitelist", PLUGIN _ERROR_MUTEX_SETTINGS_FILE_WHITELIST) {} |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
282 | 282 |
283 CString CPluginSettings::GetAppLocale() | 283 CString CPluginSettings::GetAppLocale() |
284 { | 284 { |
285 return ToCString(GetBrowserLanguage()); | 285 return ToCString(GetBrowserLanguage()); |
286 } | 286 } |
287 | 287 |
288 CString CPluginSettings::GetDocumentationLink() | 288 CString CPluginSettings::GetDocumentationLink() |
289 { | 289 { |
290 return CString(CPluginClient::GetInstance()->GetDocumentationLink().c_str()); | 290 return CString(CPluginClient::GetInstance()->GetDocumentationLink().c_str()); |
291 } | 291 } |
OLD | NEW |