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

Side by Side Diff: chrome/browser/ui/webui/options2/core_options_handler2.h

Issue 10387161: Pepper Flash settings integration: add UI for "deauthorize content licenses". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_OPTIONS2_CORE_OPTIONS_HANDLER2_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CORE_OPTIONS_HANDLER2_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CORE_OPTIONS_HANDLER2_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CORE_OPTIONS_HANDLER2_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 11
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/pepper_flash_settings_helper.h"
13 #include "chrome/browser/plugin_data_remover_helper.h" 14 #include "chrome/browser/plugin_data_remover_helper.h"
15 #include "chrome/browser/plugin_status_pref_setter.h"
14 #include "chrome/browser/prefs/pref_change_registrar.h" 16 #include "chrome/browser/prefs/pref_change_registrar.h"
15 #include "chrome/browser/prefs/pref_service.h" 17 #include "chrome/browser/prefs/pref_service.h"
16 #include "chrome/browser/ui/webui/options2/options_ui2.h" 18 #include "chrome/browser/ui/webui/options2/options_ui2.h"
17 19
18 namespace options2 { 20 namespace options2 {
19 21
20 // Core options UI handler. 22 // Core options UI handler.
21 // Handles resource and JS calls common to all options sub-pages. 23 // Handles resource and JS calls common to all options sub-pages.
22 class CoreOptionsHandler : public OptionsPageUIHandler { 24 class CoreOptionsHandler : public OptionsPageUIHandler {
23 public: 25 public:
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // item 0 - name of the preference. 140 // item 0 - name of the preference.
139 // item 1 - name of the metric identifier (optional). 141 // item 1 - name of the metric identifier (optional).
140 void HandleClearPref(const ListValue* args); 142 void HandleClearPref(const ListValue* args);
141 143
142 // Callback for the "coreOptionsUserMetricsAction" message. This records 144 // Callback for the "coreOptionsUserMetricsAction" message. This records
143 // an action that should be tracked if metrics recording is enabled. |args| 145 // an action that should be tracked if metrics recording is enabled. |args|
144 // is an array that contains a single item, the name of the metric identifier. 146 // is an array that contains a single item, the name of the metric identifier.
145 void HandleUserMetricsAction(const ListValue* args); 147 void HandleUserMetricsAction(const ListValue* args);
146 148
147 void UpdateClearPluginLSOData(); 149 void UpdateClearPluginLSOData();
150 void UpdatePepperFlashSettingsEnabled();
148 151
149 OptionsPageUIHandlerHost* handlers_host_; 152 OptionsPageUIHandlerHost* handlers_host_;
150 PrefChangeRegistrar registrar_; 153 PrefChangeRegistrar registrar_;
151 154
155 PluginStatusPrefSetter plugin_status_pref_setter_;
152 // Used for asynchronously updating the preference stating whether clearing 156 // Used for asynchronously updating the preference stating whether clearing
153 // LSO data is supported. 157 // LSO data is supported.
154 PluginDataRemoverHelper clear_plugin_lso_data_enabled_; 158 PluginDataRemoverHelper clear_plugin_lso_data_enabled_;
159 // Used for asynchronously updating the preference stating whether we should
160 // show Pepper Flash-specific settings.
161 PepperFlashSettingsHelper pepper_flash_settings_enabled_;
155 162
156 DISALLOW_COPY_AND_ASSIGN(CoreOptionsHandler); 163 DISALLOW_COPY_AND_ASSIGN(CoreOptionsHandler);
157 }; 164 };
158 165
159 } // namespace options2 166 } // namespace options2
160 167
161 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CORE_OPTIONS_HANDLER2_H_ 168 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CORE_OPTIONS_HANDLER2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698