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 "PluginClass.h" | 20 #include "PluginClass.h" |
21 #include "PluginSettings.h" | 21 #include "PluginSettings.h" |
22 #include "PluginSystem.h" | 22 #include "PluginSystem.h" |
23 #include "PluginFilter.h" | 23 #include "PluginFilter.h" |
24 #include "PluginMimeFilterClient.h" | 24 #include "PluginMimeFilterClient.h" |
25 #include "PluginClient.h" | 25 #include "AdblockPlusClient.h" |
| 26 #include "PluginClientBase.h" |
26 #include "PluginClientFactory.h" | 27 #include "PluginClientFactory.h" |
27 #include "PluginMutex.h" | |
28 #include "sddl.h" | |
29 #include "PluginUtil.h" | 28 #include "PluginUtil.h" |
30 #include "PluginUserSettings.h" | |
31 #include "../shared/Utils.h" | 29 #include "../shared/Utils.h" |
32 #include "../shared/Dictionary.h" | 30 #include "../shared/Dictionary.h" |
33 #include "../shared/IE_version.h" | 31 #include "../shared/IE_version.h" |
| 32 #include "../shared/Version.h" |
34 #include <thread> | 33 #include <thread> |
35 #include <array> | 34 #include <array> |
36 | 35 |
37 #ifdef DEBUG_HIDE_EL | 36 #ifdef DEBUG_HIDE_EL |
38 DWORD profileTime = 0; | 37 DWORD profileTime = 0; |
39 #endif | 38 #endif |
40 | 39 |
| 40 extern CComModule _Module; |
| 41 |
41 typedef HANDLE (WINAPI *OPENTHEMEDATA)(HWND, LPCWSTR); | 42 typedef HANDLE (WINAPI *OPENTHEMEDATA)(HWND, LPCWSTR); |
42 typedef HRESULT (WINAPI *DRAWTHEMEBACKGROUND)(HANDLE, HDC, INT, INT, LPRECT, LPR
ECT); | 43 typedef HRESULT (WINAPI *DRAWTHEMEBACKGROUND)(HANDLE, HDC, INT, INT, LPRECT, LPR
ECT); |
43 typedef HRESULT (WINAPI *CLOSETHEMEDATA)(HANDLE); | 44 typedef HRESULT (WINAPI *CLOSETHEMEDATA)(HANDLE); |
44 | 45 |
45 HICON CPluginClass::s_hIcons[ICON_MAX] = { NULL, NULL, NULL }; | 46 HICON CPluginClass::s_hIcons[ICON_MAX] = { NULL, NULL, NULL }; |
46 DWORD CPluginClass::s_hIconTypes[ICON_MAX] = { IDI_ICON_DISABLED, IDI_ICON_ENABL
ED, IDI_ICON_DEACTIVATED }; | 47 DWORD CPluginClass::s_hIconTypes[ICON_MAX] = { IDI_ICON_DISABLED, IDI_ICON_ENABL
ED, IDI_ICON_DEACTIVATED }; |
47 uint32_t iconHeight = 32; | 48 uint32_t iconHeight = 32; |
48 uint32_t iconWidth = 32; | 49 uint32_t iconWidth = 32; |
49 | 50 |
50 CPluginMimeFilterClient* CPluginClass::s_mimeFilter = NULL; | 51 CPluginMimeFilterClient* CPluginClass::s_mimeFilter = NULL; |
(...skipping 1707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1758 s_criticalSectionLocal.Unlock(); | 1759 s_criticalSectionLocal.Unlock(); |
1759 | 1760 |
1760 } | 1761 } |
1761 } | 1762 } |
1762 } | 1763 } |
1763 | 1764 |
1764 hTabWnd = ::GetWindow(hTabWnd, GW_HWNDNEXT); | 1765 hTabWnd = ::GetWindow(hTabWnd, GW_HWNDNEXT); |
1765 } | 1766 } |
1766 return hTabWnd; | 1767 return hTabWnd; |
1767 } | 1768 } |
OLD | NEW |