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

Side by Side Diff: chrome/browser/ui/webui/options2/core_options_handler2.h

Issue 9693032: [uber page] Split up initialization of handlers from initialization of webui pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright bumps Created 8 years, 9 months 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) 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_OPTIONS2_CORE_OPTIONS_HANDLER2_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CORE_OPTIONS_HANDLER2_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CORE_OPTIONS_HANDLER2_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CORE_OPTIONS_HANDLER2_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/plugin_data_remover_helper.h" 13 #include "chrome/browser/plugin_data_remover_helper.h"
14 #include "chrome/browser/prefs/pref_change_registrar.h" 14 #include "chrome/browser/prefs/pref_change_registrar.h"
15 #include "chrome/browser/prefs/pref_service.h" 15 #include "chrome/browser/prefs/pref_service.h"
16 #include "chrome/browser/ui/webui/options2/options_ui2.h" 16 #include "chrome/browser/ui/webui/options2/options_ui2.h"
17 17
18 namespace options2 { 18 namespace options2 {
19 19
20 // Core options UI handler. 20 // Core options UI handler.
21 // Handles resource and JS calls common to all options sub-pages. 21 // Handles resource and JS calls common to all options sub-pages.
22 class CoreOptionsHandler : public OptionsPageUIHandler { 22 class CoreOptionsHandler : public OptionsPageUIHandler {
23 public: 23 public:
24 CoreOptionsHandler(); 24 CoreOptionsHandler();
25 virtual ~CoreOptionsHandler(); 25 virtual ~CoreOptionsHandler();
26 26
27 // OptionsPageUIHandler implementation. 27 // OptionsPageUIHandler implementation.
28 virtual void Initialize() OVERRIDE;
29 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE; 28 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE;
29 virtual void InitializeHandler() OVERRIDE;
30 virtual void InitializePage() OVERRIDE;
30 virtual void Uninitialize() OVERRIDE; 31 virtual void Uninitialize() 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 // WebUIMessageHandler implementation. 38 // WebUIMessageHandler implementation.
38 virtual void RegisterMessages() OVERRIDE; 39 virtual void RegisterMessages() OVERRIDE;
39 40
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // Used for asynchronously updating the preference stating whether clearing 146 // Used for asynchronously updating the preference stating whether clearing
146 // LSO data is supported. 147 // LSO data is supported.
147 PluginDataRemoverHelper clear_plugin_lso_data_enabled_; 148 PluginDataRemoverHelper clear_plugin_lso_data_enabled_;
148 149
149 DISALLOW_COPY_AND_ASSIGN(CoreOptionsHandler); 150 DISALLOW_COPY_AND_ASSIGN(CoreOptionsHandler);
150 }; 151 };
151 152
152 } // namespace options2 153 } // namespace options2
153 154
154 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CORE_OPTIONS_HANDLER2_H_ 155 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CORE_OPTIONS_HANDLER2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698