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

Unified Diff: src/plugin/AdblockPlusClient.h

Issue 11013110: Cleanup (Closed)
Patch Set: More beautification and addressing comments Created July 29, 2013, 12:13 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/plugin/AdblockPlus.rc ('k') | src/plugin/AdblockPlusClient.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/AdblockPlusClient.h
===================================================================
--- a/src/plugin/AdblockPlusClient.h
+++ b/src/plugin/AdblockPlusClient.h
@@ -4,6 +4,7 @@
#include "PluginTypedef.h"
#include "PluginClientBase.h"
+#include "../shared/Communication.h"
class CPluginFilter;
@@ -31,7 +32,6 @@
// Private constructor used by the singleton pattern
CAdblockPlusClient();
-
public:
static CAdblockPlusClient* s_instance;
@@ -58,6 +58,13 @@
std::vector<std::wstring> GetExceptionDomains();
void AddFilter(const std::wstring& text);
void RemoveFilter(const std::wstring& text);
+ void SetPref(const std::wstring& name, const std::wstring& value);
+ void SetPref(const std::wstring& name, const int64_t& value);
+ void SetPref(const std::wstring& name, bool value);
+ std::wstring GetPref(const std::wstring& name, const std::wstring& defaultValue = L"");
+ std::wstring GetPref(const std::wstring& name, const wchar_t* defaultValue);
+ bool GetPref(const std::wstring& name, bool defaultValue = false);
+ int64_t GetPref(const std::wstring& name, int64_t defaultValue = 0);
};
#endif // _ADBLOCK_PLUS_CLIENT_H_
« no previous file with comments | « src/plugin/AdblockPlus.rc ('k') | src/plugin/AdblockPlusClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld