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

Side by Side Diff: chrome/browser/ui/webui/options/core_options_handler.h

Issue 7634018: base: Rename ValueType to something less redundant as _just_ Type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CORE_OPTIONS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CORE_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CORE_OPTIONS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CORE_OPTIONS_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // preference value. |args| is an array of parameters as follows: 84 // preference value. |args| is an array of parameters as follows:
85 // item 0 - name of the preference. 85 // item 0 - name of the preference.
86 // item 1 - the value of the preference in string form. 86 // item 1 - the value of the preference in string form.
87 // item 2 - name of the metric identifier (optional). 87 // item 2 - name of the metric identifier (optional).
88 void HandleSetBooleanPref(const ListValue* args); 88 void HandleSetBooleanPref(const ListValue* args);
89 void HandleSetIntegerPref(const ListValue* args); 89 void HandleSetIntegerPref(const ListValue* args);
90 void HandleSetDoublePref(const ListValue* args); 90 void HandleSetDoublePref(const ListValue* args);
91 void HandleSetStringPref(const ListValue* args); 91 void HandleSetStringPref(const ListValue* args);
92 void HandleSetListPref(const ListValue* args); 92 void HandleSetListPref(const ListValue* args);
93 93
94 void HandleSetPref(const ListValue* args, Value::ValueType type); 94 void HandleSetPref(const ListValue* args, base::Value::Type type);
95 95
96 // Callback for the "clearPref" message. This message clears a preference 96 // Callback for the "clearPref" message. This message clears a preference
97 // value. |args| is an array of parameters as follows: 97 // value. |args| is an array of parameters as follows:
98 // item 0 - name of the preference. 98 // item 0 - name of the preference.
99 // item 1 - name of the metric identifier (optional). 99 // item 1 - name of the metric identifier (optional).
100 void HandleClearPref(const ListValue* args); 100 void HandleClearPref(const ListValue* args);
101 101
102 // Callback for the "coreOptionsUserMetricsAction" message. This records 102 // Callback for the "coreOptionsUserMetricsAction" message. This records
103 // an action that should be tracked if metrics recording is enabled. |args| 103 // an action that should be tracked if metrics recording is enabled. |args|
104 // is an array that contains a single item, the name of the metric identifier. 104 // is an array that contains a single item, the name of the metric identifier.
105 void HandleUserMetricsAction(const ListValue* args); 105 void HandleUserMetricsAction(const ListValue* args);
106 106
107 void UpdateClearPluginLSOData(); 107 void UpdateClearPluginLSOData();
108 108
109 void NotifyPrefChanged(const std::string* pref_name); 109 void NotifyPrefChanged(const std::string* pref_name);
110 110
111 OptionsPageUIHandlerHost* handlers_host_; 111 OptionsPageUIHandlerHost* handlers_host_;
112 PrefChangeRegistrar registrar_; 112 PrefChangeRegistrar registrar_;
113 113
114 // Used for asynchronously updating the preference stating whether clearing 114 // Used for asynchronously updating the preference stating whether clearing
115 // LSO data is supported. 115 // LSO data is supported.
116 PluginDataRemoverHelper clear_plugin_lso_data_enabled_; 116 PluginDataRemoverHelper clear_plugin_lso_data_enabled_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(CoreOptionsHandler); 118 DISALLOW_COPY_AND_ASSIGN(CoreOptionsHandler);
119 }; 119 };
120 120
121 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CORE_OPTIONS_HANDLER_H_ 121 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CORE_OPTIONS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/scoped_user_pref_update.cc ('k') | chrome/browser/ui/webui/options/core_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698