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

Side by Side Diff: src/plugin/PluginSettings.h

Issue 10845030: Marshal all libadblockplus calls to the engine process (Closed)
Patch Set: Created May 31, 2013, 2:20 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
OLDNEW
1 /** 1 /**
2 * This class contains all client functionality of the IE plugin 2 * This class contains all client functionality of the IE plugin
3 * 3 *
4 * Exception errors are tested by calls to ExceptionsTest from: Main ... 4 * Exception errors are tested by calls to ExceptionsTest from: Main ...
5 */ 5 */
6 6
7 #ifndef _PLUGIN_SETTINGS_H_ 7 #ifndef _PLUGIN_SETTINGS_H_
8 #define _PLUGIN_SETTINGS_H_ 8 #define _PLUGIN_SETTINGS_H_
9 9
10 10
11 #include "PluginTypedef.h" 11 #include "PluginTypedef.h"
12 #include "AdblockPlus.h" 12 #include "AdblockPlusClient.h"
13 13
14 // Main settings 14 // Main settings
15 15
16 #define SETTING_PLUGIN_INFO_PANEL L"plugininfopanel" 16 #define SETTING_PLUGIN_INFO_PANEL L"plugininfopanel"
17 #define SETTING_PLUGIN_VERSION L"pluginversion" 17 #define SETTING_PLUGIN_VERSION L"pluginversion"
18 #define SETTING_PLUGIN_UPDATE_URL L"pluginupdateurl" 18 #define SETTING_PLUGIN_UPDATE_URL L"pluginupdateurl"
19 #define SETTING_PLUGIN_UPDATE_VERSION L"pluginupdateversion" 19 #define SETTING_PLUGIN_UPDATE_VERSION L"pluginupdateversion"
20 #define SETTING_PLUGIN_UPDATE_TIME L"pluginupdatetime" 20 #define SETTING_PLUGIN_UPDATE_TIME L"pluginupdatetime"
21 #define SETTING_PLUGIN_SELFTEST L"pluginselftest" 21 #define SETTING_PLUGIN_SELFTEST L"pluginselftest"
22 #define SETTING_LANGUAGE L"language" 22 #define SETTING_LANGUAGE L"language"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 static CComAutoCriticalSection s_criticalSectionLocal; 84 static CComAutoCriticalSection s_criticalSectionLocal;
85 #ifdef SUPPORT_WHITELIST 85 #ifdef SUPPORT_WHITELIST
86 static CComAutoCriticalSection s_criticalSectionDomainHistory; 86 static CComAutoCriticalSection s_criticalSectionDomainHistory;
87 #endif 87 #endif
88 88
89 bool m_isPluginSelftestEnabled; 89 bool m_isPluginSelftestEnabled;
90 90
91 void Clear(); 91 void Clear();
92 92
93 // Private constructor used by the singleton pattern 93 // Private constructor used by the singleton pattern
94 CPluginSettings();» 94 CPluginSettings();
95 public: 95 public:
96 96
97 ~CPluginSettings(); 97 ~CPluginSettings();
98 98
99 static CPluginSettings* s_instance; 99 static CPluginSettings* s_instance;
100 100
101 static bool s_isLightOnly; 101 static bool s_isLightOnly;
102 static bool HasInstance(); 102 static bool HasInstance();
103 static CPluginSettings* GetInstance(); 103 static CPluginSettings* GetInstance();
104 104
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 bool MakeRequestForUpdate(); 223 bool MakeRequestForUpdate();
224 bool RefreshWhitelist(); 224 bool RefreshWhitelist();
225 DWORD GetWindowsBuildNumber(); 225 DWORD GetWindowsBuildNumber();
226 226
227 void SetSubscription(BSTR language); 227 void SetSubscription(BSTR language);
228 void SetSubscription(std::string language); 228 void SetSubscription(std::string language);
229 void SetDefaultSubscription(); 229 void SetDefaultSubscription();
230 CString GetSubscription(); 230 CString GetSubscription();
231 void RefreshFilterlist(); 231 void RefreshFilterlist();
232 232
233 std::vector<AdblockPlus::SubscriptionPtr> m_subscriptions; 233 std::vector<SubscriptionDescription> m_subscriptions;
234 }; 234 };
235 235
236 236
237 #endif // _PLUGIN_SETTINGS_H_ 237 #endif // _PLUGIN_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld