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

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

Issue 10955040: Fix domain whitelisting and remove unused code (Closed)
Patch Set: Created June 25, 2013, 9:42 a.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
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 201
202 private: 202 private:
203 std::vector<std::string> m_whitelistedDomains; 203 std::vector<std::string> m_whitelistedDomains;
204 204
205 void ClearWhitelist(); 205 void ClearWhitelist();
206 bool ReadWhitelist(bool bDebug=true); 206 bool ReadWhitelist(bool bDebug=true);
207 207
208 public: 208 public:
209 void AddWhiteListedDomain(const CString& domain); 209 void AddWhiteListedDomain(const CString& domain);
210 void RemoveWhiteListedDomain(const CString& domain); 210 void RemoveWhiteListedDomain(const CString& domain);
211 bool IsWhiteListedDomain(const CString& domain) const;
212 int GetWhiteListedDomainCount() const; 211 int GetWhiteListedDomainCount() const;
213 std::vector<std::string> GetWhiteListedDomainList(); 212 std::vector<std::string> GetWhiteListedDomainList();
214 #endif //SUPPORT_WHITELIST 213 #endif //SUPPORT_WHITELIST
215 214
216 bool RefreshWhitelist(); 215 bool RefreshWhitelist();
217 DWORD GetWindowsBuildNumber(); 216 DWORD GetWindowsBuildNumber();
218 217
219 void SetSubscription(BSTR language); 218 void SetSubscription(BSTR language);
220 void SetSubscription(std::string language); 219 void SetSubscription(std::string language);
221 void SetDefaultSubscription(); 220 void SetDefaultSubscription();
222 CString GetSubscription(); 221 CString GetSubscription();
223 void RefreshFilterlist(); 222 void RefreshFilterlist();
224 223
225 std::vector<SubscriptionDescription> m_subscriptions; 224 std::vector<SubscriptionDescription> m_subscriptions;
226 }; 225 };
227 226
228 227
229 #endif // _PLUGIN_SETTINGS_H_ 228 #endif // _PLUGIN_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld