OLD | NEW |
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> |
11 | 11 |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/plugin_data_remover_helper.h" | 13 #include "chrome/browser/plugin_data_remover_helper.h" |
14 #include "chrome/browser/prefs/pref_change_registrar.h" | 14 #include "chrome/browser/prefs/pref_change_registrar.h" |
15 #include "chrome/browser/ui/webui/options/options_ui.h" | 15 #include "chrome/browser/ui/webui/options/options_ui.h" |
16 | 16 |
17 // Core options UI handler. | 17 // Core options UI handler. |
18 // Handles resource and JS calls common to all options sub-pages. | 18 // Handles resource and JS calls common to all options sub-pages. |
19 class CoreOptionsHandler : public OptionsPageUIHandler { | 19 class CoreOptionsHandler : public OptionsPageUIHandler { |
20 public: | 20 public: |
21 CoreOptionsHandler(); | 21 CoreOptionsHandler(); |
22 virtual ~CoreOptionsHandler(); | 22 virtual ~CoreOptionsHandler(); |
23 | 23 |
24 // OptionsPageUIHandler implementation. | 24 // OptionsPageUIHandler implementation. |
25 virtual void Initialize(); | 25 virtual void Initialize(); |
26 virtual void GetLocalizedValues(DictionaryValue* localized_strings); | 26 virtual void GetLocalizedValues(DictionaryValue* localized_strings); |
27 virtual void Uninitialize(); | 27 virtual void Uninitialize(); |
28 | 28 |
29 // NotificationObserver implementation. | 29 // NotificationObserver implementation. |
30 virtual void Observe(NotificationType type, | 30 virtual void Observe(int type, |
31 const NotificationSource& source, | 31 const NotificationSource& source, |
32 const NotificationDetails& details); | 32 const NotificationDetails& details); |
33 | 33 |
34 // WebUIMessageHandler implementation. | 34 // WebUIMessageHandler implementation. |
35 virtual void RegisterMessages(); | 35 virtual void RegisterMessages(); |
36 virtual WebUIMessageHandler* Attach(WebUI* web_ui); | 36 virtual WebUIMessageHandler* Attach(WebUI* web_ui); |
37 | 37 |
38 void set_handlers_host(OptionsPageUIHandlerHost* handlers_host) { | 38 void set_handlers_host(OptionsPageUIHandlerHost* handlers_host) { |
39 handlers_host_ = handlers_host; | 39 handlers_host_ = handlers_host; |
40 } | 40 } |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_ |
OLD | NEW |