OLD | NEW |
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_CONTENT_SETTINGS_HANDLER2_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CONTENT_SETTINGS_HANDLER2_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CONTENT_SETTINGS_HANDLER2_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CONTENT_SETTINGS_HANDLER2_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/plugin_data_remover_helper.h" | 9 #include "chrome/browser/plugin_data_remover_helper.h" |
10 #include "chrome/browser/prefs/pref_change_registrar.h" | 10 #include "chrome/browser/prefs/pref_change_registrar.h" |
11 #include "chrome/browser/ui/webui/options2/options_ui2.h" | 11 #include "chrome/browser/ui/webui/options2/options_ui2.h" |
12 #include "chrome/common/content_settings_types.h" | 12 #include "chrome/common/content_settings_types.h" |
13 #include "chrome/common/content_settings.h" | 13 #include "chrome/common/content_settings.h" |
14 #include "content/public/browser/notification_observer.h" | 14 #include "content/public/browser/notification_observer.h" |
15 #include "content/public/browser/notification_registrar.h" | 15 #include "content/public/browser/notification_registrar.h" |
16 | 16 |
17 class HostContentSettingsMap; | 17 class HostContentSettingsMap; |
18 class ProtocolHandlerRegistry; | 18 class ProtocolHandlerRegistry; |
19 | 19 |
20 namespace options2 { | 20 namespace options2 { |
21 | 21 |
22 class ContentSettingsHandler : public OptionsPageUIHandler { | 22 class ContentSettingsHandler : public OptionsPageUIHandler { |
23 public: | 23 public: |
24 ContentSettingsHandler(); | 24 ContentSettingsHandler(); |
25 virtual ~ContentSettingsHandler(); | 25 virtual ~ContentSettingsHandler(); |
26 | 26 |
27 // OptionsPageUIHandler implementation. | 27 // OptionsPageUIHandler implementation. |
28 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE; | 28 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE; |
29 | 29 virtual void InitializeHandler() OVERRIDE; |
30 virtual void Initialize() OVERRIDE; | 30 virtual void InitializePage() OVERRIDE; |
31 | |
32 virtual void RegisterMessages() OVERRIDE; | 31 virtual void RegisterMessages() OVERRIDE; |
33 | 32 |
34 // content::NotificationObserver implementation. | 33 // content::NotificationObserver implementation. |
35 virtual void Observe(int type, | 34 virtual void Observe(int type, |
36 const content::NotificationSource& source, | 35 const content::NotificationSource& source, |
37 const content::NotificationDetails& details) OVERRIDE; | 36 const content::NotificationDetails& details) OVERRIDE; |
38 | 37 |
39 // Gets a string identifier for the group name, for use in HTML. | 38 // Gets a string identifier for the group name, for use in HTML. |
40 static std::string ContentSettingsTypeToGroupName(ContentSettingsType type); | 39 static std::string ContentSettingsTypeToGroupName(ContentSettingsType type); |
41 | 40 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 112 |
114 content::NotificationRegistrar notification_registrar_; | 113 content::NotificationRegistrar notification_registrar_; |
115 PrefChangeRegistrar pref_change_registrar_; | 114 PrefChangeRegistrar pref_change_registrar_; |
116 | 115 |
117 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler); | 116 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler); |
118 }; | 117 }; |
119 | 118 |
120 } // namespace options2 | 119 } // namespace options2 |
121 | 120 |
122 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CONTENT_SETTINGS_HANDLER2_H_ | 121 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CONTENT_SETTINGS_HANDLER2_H_ |
OLD | NEW |