Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Side by Side Diff: chrome/browser/ui/webui/options/handler_options_handler.h

Issue 8604005: Add OVERRIDE to chrome/browser/ui/webui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_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"
11 #include "chrome/browser/ui/webui/options/options_ui.h" 11 #include "chrome/browser/ui/webui/options/options_ui.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 class HandlerOptionsHandler : public OptionsPageUIHandler { 19 class HandlerOptionsHandler : public OptionsPageUIHandler {
20 public: 20 public:
21 HandlerOptionsHandler(); 21 HandlerOptionsHandler();
22 virtual ~HandlerOptionsHandler(); 22 virtual ~HandlerOptionsHandler();
23 23
24 // OptionsPageUIHandler implementation. 24 // OptionsPageUIHandler implementation.
25 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings); 25 virtual void GetLocalizedValues(
26 virtual void Initialize(); 26 base::DictionaryValue* localized_strings) OVERRIDE;
27 virtual void RegisterMessages(); 27 virtual void Initialize() OVERRIDE;
28 virtual void RegisterMessages() OVERRIDE;
28 29
29 // content::NotificationObserver implementation. 30 // content::NotificationObserver implementation.
30 virtual void Observe(int type, 31 virtual void Observe(int type,
31 const content::NotificationSource& source, 32 const content::NotificationSource& source,
32 const content::NotificationDetails& details); 33 const content::NotificationDetails& details) OVERRIDE;
33 34
34 private: 35 private:
35 // Called when the user toggles whether custom handlers are enabled. 36 // Called when the user toggles whether custom handlers are enabled.
36 void SetHandlersEnabled(const ListValue* args); 37 void SetHandlersEnabled(const ListValue* args);
37 38
38 // Called when the user sets a new default handler for a protocol. 39 // Called when the user sets a new default handler for a protocol.
39 void SetDefault(const ListValue* args); 40 void SetDefault(const ListValue* args);
40 41
41 // Called when the user clears the default handler for a protocol. 42 // Called when the user clears the default handler for a protocol.
42 // |args| is the string name of the protocol to clear. 43 // |args| is the string name of the protocol to clear.
(...skipping 23 matching lines...) Expand all
66 void RemoveIgnoredHandler(const ListValue* args); 67 void RemoveIgnoredHandler(const ListValue* args);
67 68
68 ProtocolHandlerRegistry* GetProtocolHandlerRegistry(); 69 ProtocolHandlerRegistry* GetProtocolHandlerRegistry();
69 70
70 content::NotificationRegistrar notification_registrar_; 71 content::NotificationRegistrar notification_registrar_;
71 72
72 DISALLOW_COPY_AND_ASSIGN(HandlerOptionsHandler); 73 DISALLOW_COPY_AND_ASSIGN(HandlerOptionsHandler);
73 }; 74 };
74 75
75 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_HANDLER_OPTIONS_HANDLER_H_ 76 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_HANDLER_OPTIONS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/font_settings_handler.h ('k') | chrome/browser/ui/webui/options/import_data_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698