| 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_OPTIONS_CORE_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_OPTIONS_CORE_OPTIONS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_DOM_UI_OPTIONS_CORE_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_DOM_UI_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/dom_ui/options/options_ui.h" | 13 #include "chrome/browser/dom_ui/options/options_ui.h" |
| 14 #include "chrome/browser/prefs/pref_change_registrar.h" | 14 #include "chrome/browser/prefs/pref_change_registrar.h" |
| 15 | 15 |
| 16 // Core options UI handler. | 16 // Core options UI handler. |
| 17 // Handles resource and JS calls common to all options sub-pages. | 17 // Handles resource and JS calls common to all options sub-pages. |
| 18 class CoreOptionsHandler : public OptionsPageUIHandler { | 18 class CoreOptionsHandler : public OptionsPageUIHandler { |
| 19 public: | 19 public: |
| 20 CoreOptionsHandler(); | 20 CoreOptionsHandler(); |
| 21 virtual ~CoreOptionsHandler(); |
| 21 | 22 |
| 22 // OptionsUIHandler implementation. | 23 // OptionsUIHandler implementation. |
| 23 virtual void GetLocalizedValues(DictionaryValue* localized_strings); | 24 virtual void GetLocalizedValues(DictionaryValue* localized_strings); |
| 24 virtual void Uninitialize(); | 25 virtual void Uninitialize(); |
| 25 | 26 |
| 26 // NotificationObserver implementation. | 27 // NotificationObserver implementation. |
| 27 virtual void Observe(NotificationType type, | 28 virtual void Observe(NotificationType type, |
| 28 const NotificationSource& source, | 29 const NotificationSource& source, |
| 29 const NotificationDetails& details); | 30 const NotificationDetails& details); |
| 30 | 31 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 void HandleUserMetricsAction(const ListValue* args); | 100 void HandleUserMetricsAction(const ListValue* args); |
| 100 | 101 |
| 101 void NotifyPrefChanged(const std::string* pref_name); | 102 void NotifyPrefChanged(const std::string* pref_name); |
| 102 | 103 |
| 103 PrefChangeRegistrar registrar_; | 104 PrefChangeRegistrar registrar_; |
| 104 | 105 |
| 105 DISALLOW_COPY_AND_ASSIGN(CoreOptionsHandler); | 106 DISALLOW_COPY_AND_ASSIGN(CoreOptionsHandler); |
| 106 }; | 107 }; |
| 107 | 108 |
| 108 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_CORE_OPTIONS_HANDLER_H_ | 109 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_CORE_OPTIONS_HANDLER_H_ |
| OLD | NEW |