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

Side by Side Diff: chrome/browser/ui/webui/options/core_options_handler.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_OPTIONS_CORE_OPTIONS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CORE_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CORE_OPTIONS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_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/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/options/options_ui.h" 16 #include "chrome/browser/ui/webui/options/options_ui.h"
17 17
18 // Core options UI handler. 18 // Core options UI handler.
19 // Handles resource and JS calls common to all options sub-pages. 19 // Handles resource and JS calls common to all options sub-pages.
20 class CoreOptionsHandler : public OptionsPageUIHandler { 20 class CoreOptionsHandler : public OptionsPageUIHandler {
21 public: 21 public:
22 CoreOptionsHandler(); 22 CoreOptionsHandler();
23 virtual ~CoreOptionsHandler(); 23 virtual ~CoreOptionsHandler();
24 24
25 // OptionsPageUIHandler implementation. 25 // OptionsPageUIHandler implementation.
26 virtual void Initialize() OVERRIDE; 26 virtual void InitializeHandler() OVERRIDE;
27 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE; 27 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE;
28 virtual void Uninitialize() OVERRIDE; 28 virtual void Uninitialize() OVERRIDE;
29 29
30 // content::NotificationObserver implementation. 30 // content::NotificationObserver implementation.
31 virtual void Observe(int type, 31 virtual void Observe(int type,
32 const content::NotificationSource& source, 32 const content::NotificationSource& source,
33 const content::NotificationDetails& details) OVERRIDE; 33 const content::NotificationDetails& details) OVERRIDE;
34 34
35 // WebUIMessageHandler implementation. 35 // WebUIMessageHandler implementation.
36 virtual void RegisterMessages() OVERRIDE; 36 virtual void RegisterMessages() OVERRIDE;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 PrefChangeRegistrar registrar_; 141 PrefChangeRegistrar registrar_;
142 142
143 // Used for asynchronously updating the preference stating whether clearing 143 // Used for asynchronously updating the preference stating whether clearing
144 // LSO data is supported. 144 // LSO data is supported.
145 PluginDataRemoverHelper clear_plugin_lso_data_enabled_; 145 PluginDataRemoverHelper clear_plugin_lso_data_enabled_;
146 146
147 DISALLOW_COPY_AND_ASSIGN(CoreOptionsHandler); 147 DISALLOW_COPY_AND_ASSIGN(CoreOptionsHandler);
148 }; 148 };
149 149
150 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CORE_OPTIONS_HANDLER_H_ 150 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CORE_OPTIONS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/content_settings_handler.cc ('k') | chrome/browser/ui/webui/options/core_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698