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

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

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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) 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_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/ui/webui/options/options_ui.h" 15 #include "chrome/browser/ui/webui/options/options_ui.h"
16 16
17 // Core options UI handler. 17 // Core options UI handler.
18 // Handles resource and JS calls common to all options sub-pages. 18 // Handles resource and JS calls common to all options sub-pages.
19 class CoreOptionsHandler : public OptionsPageUIHandler { 19 class CoreOptionsHandler : public OptionsPageUIHandler {
20 public: 20 public:
21 CoreOptionsHandler(); 21 CoreOptionsHandler();
22 virtual ~CoreOptionsHandler(); 22 virtual ~CoreOptionsHandler();
23 23
24 // OptionsPageUIHandler implementation. 24 // OptionsPageUIHandler implementation.
25 virtual void Initialize(); 25 virtual void Initialize();
26 virtual void GetLocalizedValues(DictionaryValue* localized_strings); 26 virtual void GetLocalizedValues(DictionaryValue* localized_strings);
27 virtual void Uninitialize(); 27 virtual void Uninitialize();
28 28
29 // NotificationObserver implementation. 29 // NotificationObserver implementation.
30 virtual void Observe(NotificationType type, 30 virtual void Observe(int type,
31 const NotificationSource& source, 31 const NotificationSource& source,
32 const NotificationDetails& details); 32 const NotificationDetails& details);
33 33
34 // WebUIMessageHandler implementation. 34 // WebUIMessageHandler implementation.
35 virtual void RegisterMessages(); 35 virtual void RegisterMessages();
36 virtual WebUIMessageHandler* Attach(WebUI* web_ui); 36 virtual WebUIMessageHandler* Attach(WebUI* web_ui);
37 37
38 void set_handlers_host(OptionsPageUIHandlerHost* handlers_host) { 38 void set_handlers_host(OptionsPageUIHandlerHost* handlers_host) {
39 handlers_host_ = handlers_host; 39 handlers_host_ = handlers_host;
40 } 40 }
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 PrefChangeRegistrar registrar_; 112 PrefChangeRegistrar registrar_;
113 113
114 // Used for asynchronously updating the preference stating whether clearing 114 // Used for asynchronously updating the preference stating whether clearing
115 // LSO data is supported. 115 // LSO data is supported.
116 PluginDataRemoverHelper clear_plugin_lso_data_enabled_; 116 PluginDataRemoverHelper clear_plugin_lso_data_enabled_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(CoreOptionsHandler); 118 DISALLOW_COPY_AND_ASSIGN(CoreOptionsHandler);
119 }; 119 };
120 120
121 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CORE_OPTIONS_HANDLER_H_ 121 #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