| 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_CONTENT_SETTINGS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_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" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 virtual ~ContentSettingsHandler(); | 22 virtual ~ContentSettingsHandler(); |
| 23 | 23 |
| 24 // OptionsPageUIHandler implementation. | 24 // OptionsPageUIHandler implementation. |
| 25 virtual void GetLocalizedValues(DictionaryValue* localized_strings); | 25 virtual void GetLocalizedValues(DictionaryValue* localized_strings); |
| 26 | 26 |
| 27 virtual void Initialize(); | 27 virtual void Initialize(); |
| 28 | 28 |
| 29 virtual void RegisterMessages(); | 29 virtual void RegisterMessages(); |
| 30 | 30 |
| 31 // NotificationObserver implementation. | 31 // NotificationObserver implementation. |
| 32 virtual void Observe(NotificationType type, | 32 virtual void Observe(int type, |
| 33 const NotificationSource& source, | 33 const NotificationSource& source, |
| 34 const NotificationDetails& details); | 34 const NotificationDetails& details); |
| 35 | 35 |
| 36 // Gets a string identifier for the group name, for use in HTML. | 36 // Gets a string identifier for the group name, for use in HTML. |
| 37 static std::string ContentSettingsTypeToGroupName(ContentSettingsType type); | 37 static std::string ContentSettingsTypeToGroupName(ContentSettingsType type); |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 // Functions that call into the page ----------------------------------------- | 40 // Functions that call into the page ----------------------------------------- |
| 41 | 41 |
| 42 // Updates the page with the default settings (allow, ask, block, etc.) | 42 // Updates the page with the default settings (allow, ask, block, etc.) |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 // Member variables --------------------------------------------------------- | 107 // Member variables --------------------------------------------------------- |
| 108 | 108 |
| 109 NotificationRegistrar notification_registrar_; | 109 NotificationRegistrar notification_registrar_; |
| 110 PrefChangeRegistrar pref_change_registrar_; | 110 PrefChangeRegistrar pref_change_registrar_; |
| 111 | 111 |
| 112 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler); | 112 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler); |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ | 115 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ |
| OLD | NEW |