Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1672)

Unified Diff: chrome/browser/dom_ui/core_options_handler.h

Issue 2935011: Initial accounts options page. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: use ListItem directly for now per arv Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/mock_cros_settings.cc ('k') | chrome/browser/dom_ui/core_options_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/core_options_handler.h
diff --git a/chrome/browser/dom_ui/core_options_handler.h b/chrome/browser/dom_ui/core_options_handler.h
index 12d35a716c4ef92a011ec38e88c437b1c49df632..ed6d2f1bfccea7b392669becca7f908f6d9fff1c 100644
--- a/chrome/browser/dom_ui/core_options_handler.h
+++ b/chrome/browser/dom_ui/core_options_handler.h
@@ -29,6 +29,19 @@ class CoreOptionsHandler : public OptionsPageUIHandler {
// DOMMessageHandler implementation.
virtual void RegisterMessages();
+ protected:
+ // Fetches a pref value of given |pref_name|.
+ // Note that caller owns the returned Value.
+ virtual Value* FetchPref(const std::wstring& pref_name);
+
+ // Observes a pref of given |pref_name|.
+ virtual void ObservePref(const std::wstring& pref_name);
+
+ // Sets a pref value |value_string| of |pref_type| to given |pref_name|.
+ virtual void SetPref(const std::wstring& pref_name,
+ Value::ValueType pref_type,
+ const std::string& value_string);
+
private:
typedef std::multimap<std::wstring, std::wstring> PreferenceCallbackMap;
// Callback for the "coreOptionsInitialize" message. This message will
@@ -44,7 +57,7 @@ class CoreOptionsHandler : public OptionsPageUIHandler {
// Callback for the "observePrefs" message. This message initiates
// notification observing for given array of preference names.
- void HandleObservePefs(const Value* value);
+ void HandleObservePrefs(const Value* value);
// Callbacks for the "set<type>Pref" message. This message saves the new
// preference value. The input value is an array of strings representing
@@ -52,6 +65,7 @@ class CoreOptionsHandler : public OptionsPageUIHandler {
void HandleSetBooleanPref(const Value* value);
void HandleSetIntegerPref(const Value* value);
void HandleSetStringPref(const Value* value);
+ void HandleSetObjectPref(const Value* value);
void HandleSetPref(const Value* value, Value::ValueType type);
« no previous file with comments | « chrome/browser/chromeos/mock_cros_settings.cc ('k') | chrome/browser/dom_ui/core_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698