| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DOM_UI_CONTENT_SETTINGS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_CONTENT_SETTINGS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_DOM_UI_CONTENT_SETTINGS_HANDLER_H_ | 6 #define CHROME_BROWSER_DOM_UI_CONTENT_SETTINGS_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/dom_ui/options_ui.h" | 9 #include "chrome/browser/dom_ui/options_ui.h" |
| 10 #include "chrome/common/notification_observer.h" |
| 11 #include "chrome/common/notification_registrar.h" |
| 10 | 12 |
| 11 class ContentSettingsHandler : public OptionsPageUIHandler { | 13 class ContentSettingsHandler : public OptionsPageUIHandler { |
| 12 public: | 14 public: |
| 13 ContentSettingsHandler(); | 15 ContentSettingsHandler(); |
| 14 virtual ~ContentSettingsHandler(); | 16 virtual ~ContentSettingsHandler(); |
| 15 | 17 |
| 16 // OptionsUIHandler implementation. | 18 // OptionsUIHandler implementation. |
| 17 virtual void GetLocalizedValues(DictionaryValue* localized_strings); | 19 virtual void GetLocalizedValues(DictionaryValue* localized_strings); |
| 18 | 20 |
| 19 virtual void Initialize(); | 21 virtual void Initialize(); |
| 20 | 22 |
| 21 virtual void RegisterMessages(); | 23 virtual void RegisterMessages(); |
| 22 | 24 |
| 25 // NotificationObserver implementation. |
| 26 virtual void Observe(NotificationType type, |
| 27 const NotificationSource& source, |
| 28 const NotificationDetails& details); |
| 29 |
| 23 private: | 30 private: |
| 24 void UpdateImagesExceptionsViewFromModel(); | 31 void UpdateImagesExceptionsViewFromModel(); |
| 25 void SetContentFilter(const Value* value); | 32 void SetContentFilter(const Value* value); |
| 26 void SetAllowThirdPartyCookies(const Value* value); | 33 void SetAllowThirdPartyCookies(const Value* value); |
| 34 void RemoveExceptions(const Value* value); |
| 35 |
| 36 NotificationRegistrar notification_registrar_; |
| 27 | 37 |
| 28 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler); | 38 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler); |
| 29 }; | 39 }; |
| 30 | 40 |
| 31 #endif // CHROME_BROWSER_DOM_UI_CONTENT_SETTINGS_HANDLER_H_ | 41 #endif // CHROME_BROWSER_DOM_UI_CONTENT_SETTINGS_HANDLER_H_ |
| OLD | NEW |