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_OPTIONS_HANDLER_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_HANDLER_OPTIONS_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_HANDLER_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_HANDLER_OPTIONS_HANDLER_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" |
(...skipping 16 matching lines...) Expand all Loading... |
27 namespace options { | 27 namespace options { |
28 | 28 |
29 class HandlerOptionsHandler : public OptionsPageUIHandler, | 29 class HandlerOptionsHandler : public OptionsPageUIHandler, |
30 public content::NotificationObserver { | 30 public content::NotificationObserver { |
31 public: | 31 public: |
32 HandlerOptionsHandler(); | 32 HandlerOptionsHandler(); |
33 virtual ~HandlerOptionsHandler(); | 33 virtual ~HandlerOptionsHandler(); |
34 | 34 |
35 // OptionsPageUIHandler implementation. | 35 // OptionsPageUIHandler implementation. |
36 virtual void GetLocalizedValues( | 36 virtual void GetLocalizedValues( |
37 base::DictionaryValue* localized_strings) OVERRIDE; | 37 base::DictionaryValue* localized_strings) override; |
38 virtual void InitializeHandler() OVERRIDE; | 38 virtual void InitializeHandler() override; |
39 virtual void InitializePage() OVERRIDE; | 39 virtual void InitializePage() override; |
40 virtual void RegisterMessages() OVERRIDE; | 40 virtual void RegisterMessages() override; |
41 | 41 |
42 // content::NotificationObserver implementation. | 42 // content::NotificationObserver implementation. |
43 virtual void Observe(int type, | 43 virtual void Observe(int type, |
44 const content::NotificationSource& source, | 44 const content::NotificationSource& source, |
45 const content::NotificationDetails& details) OVERRIDE; | 45 const content::NotificationDetails& details) override; |
46 | 46 |
47 private: | 47 private: |
48 // Called when the user toggles whether custom handlers are enabled. | 48 // Called when the user toggles whether custom handlers are enabled. |
49 void SetHandlersEnabled(const base::ListValue* args); | 49 void SetHandlersEnabled(const base::ListValue* args); |
50 | 50 |
51 // Called when the user sets a new default handler for a protocol. | 51 // Called when the user sets a new default handler for a protocol. |
52 void SetDefault(const base::ListValue* args); | 52 void SetDefault(const base::ListValue* args); |
53 | 53 |
54 // Called when the user clears the default handler for a protocol. | 54 // Called when the user clears the default handler for a protocol. |
55 // |args| is the string name of the protocol to clear. | 55 // |args| is the string name of the protocol to clear. |
(...skipping 25 matching lines...) Expand all Loading... |
81 ProtocolHandlerRegistry* GetProtocolHandlerRegistry(); | 81 ProtocolHandlerRegistry* GetProtocolHandlerRegistry(); |
82 | 82 |
83 content::NotificationRegistrar notification_registrar_; | 83 content::NotificationRegistrar notification_registrar_; |
84 | 84 |
85 DISALLOW_COPY_AND_ASSIGN(HandlerOptionsHandler); | 85 DISALLOW_COPY_AND_ASSIGN(HandlerOptionsHandler); |
86 }; | 86 }; |
87 | 87 |
88 } // namespace options | 88 } // namespace options |
89 | 89 |
90 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_HANDLER_OPTIONS_HANDLER_H_ | 90 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_HANDLER_OPTIONS_HANDLER_H_ |
OLD | NEW |