Chromium Code Reviews| 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. |
|
Evan Stade
2012/03/13 20:44:50
can you add a file comment here? Offhand I don't h
Dan Beam
2012/03/13 23:01:45
Done.
| |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_HANDLER_OPTIONS_HANDLER2_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_HANDLER_OPTIONS_HANDLER2_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_HANDLER_OPTIONS_HANDLER2_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_HANDLER_OPTIONS_HANDLER2_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 10 #include "chrome/browser/custom_handlers/protocol_handler_registry.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/custom_handlers/protocol_handler.h" | 12 #include "chrome/common/custom_handlers/protocol_handler.h" |
| 13 #include "content/public/browser/notification_registrar.h" | 13 #include "content/public/browser/notification_registrar.h" |
| 14 | 14 |
| 15 namespace base { | 15 namespace base { |
| 16 class DictionaryValue; | 16 class DictionaryValue; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace options2 { | 19 namespace options2 { |
| 20 | 20 |
| 21 class HandlerOptionsHandler : public OptionsPageUIHandler { | 21 class HandlerOptionsHandler : public OptionsPageUIHandler { |
| 22 public: | 22 public: |
| 23 HandlerOptionsHandler(); | 23 HandlerOptionsHandler(); |
| 24 virtual ~HandlerOptionsHandler(); | 24 virtual ~HandlerOptionsHandler(); |
| 25 | 25 |
| 26 // OptionsPageUIHandler implementation. | 26 // OptionsPageUIHandler implementation. |
| 27 virtual void GetLocalizedValues( | 27 virtual void GetLocalizedValues( |
| 28 base::DictionaryValue* localized_strings) OVERRIDE; | 28 base::DictionaryValue* localized_strings) OVERRIDE; |
| 29 virtual void Initialize() OVERRIDE; | 29 virtual void Initialize() OVERRIDE; |
| 30 virtual void RegisterMessages() OVERRIDE; | 30 virtual void RegisterMessages() OVERRIDE; |
| 31 virtual void SendPageValues() OVERRIDE; | |
| 31 | 32 |
| 32 // content::NotificationObserver implementation. | 33 // content::NotificationObserver implementation. |
| 33 virtual void Observe(int type, | 34 virtual void Observe(int type, |
| 34 const content::NotificationSource& source, | 35 const content::NotificationSource& source, |
| 35 const content::NotificationDetails& details) OVERRIDE; | 36 const content::NotificationDetails& details) OVERRIDE; |
| 36 | 37 |
| 37 private: | 38 private: |
| 38 // Called when the user toggles whether custom handlers are enabled. | 39 // Called when the user toggles whether custom handlers are enabled. |
| 39 void SetHandlersEnabled(const ListValue* args); | 40 void SetHandlersEnabled(const ListValue* args); |
| 40 | 41 |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 71 ProtocolHandlerRegistry* GetProtocolHandlerRegistry(); | 72 ProtocolHandlerRegistry* GetProtocolHandlerRegistry(); |
| 72 | 73 |
| 73 content::NotificationRegistrar notification_registrar_; | 74 content::NotificationRegistrar notification_registrar_; |
| 74 | 75 |
| 75 DISALLOW_COPY_AND_ASSIGN(HandlerOptionsHandler); | 76 DISALLOW_COPY_AND_ASSIGN(HandlerOptionsHandler); |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 } // namespace options2 | 79 } // namespace options2 |
| 79 | 80 |
| 80 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_HANDLER_OPTIONS_HANDLER2_H_ | 81 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_HANDLER_OPTIONS_HANDLER2_H_ |
| OLD | NEW |