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

Side by Side Diff: chrome/browser/ui/webui/options/content_settings_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: rename Initialize -> InitializeHandler, SendPageValues -> InitializePage 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) 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_CONTENT_SETTINGS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/plugin_data_remover_helper.h" 9 #include "chrome/browser/plugin_data_remover_helper.h"
10 #include "chrome/browser/prefs/pref_change_registrar.h" 10 #include "chrome/browser/prefs/pref_change_registrar.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/content_settings_types.h" 12 #include "chrome/common/content_settings_types.h"
13 #include "chrome/common/content_settings.h" 13 #include "chrome/common/content_settings.h"
14 #include "content/public/browser/notification_observer.h" 14 #include "content/public/browser/notification_observer.h"
15 #include "content/public/browser/notification_registrar.h" 15 #include "content/public/browser/notification_registrar.h"
16 16
17 class HostContentSettingsMap; 17 class HostContentSettingsMap;
18 class ProtocolHandlerRegistry; 18 class ProtocolHandlerRegistry;
19 19
20 class ContentSettingsHandler : public OptionsPageUIHandler { 20 class ContentSettingsHandler : public OptionsPageUIHandler {
21 public: 21 public:
22 ContentSettingsHandler(); 22 ContentSettingsHandler();
23 virtual ~ContentSettingsHandler(); 23 virtual ~ContentSettingsHandler();
24 24
25 // OptionsPageUIHandler implementation. 25 // OptionsPageUIHandler implementation.
26 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE; 26 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE;
27 27
28 virtual void Initialize() OVERRIDE; 28 virtual void InitializeHandler() OVERRIDE;
29 29
30 virtual void RegisterMessages() OVERRIDE; 30 virtual void RegisterMessages() OVERRIDE;
31 31
32 // content::NotificationObserver implementation. 32 // content::NotificationObserver implementation.
33 virtual void Observe(int type, 33 virtual void Observe(int type,
34 const content::NotificationSource& source, 34 const content::NotificationSource& source,
35 const content::NotificationDetails& details) OVERRIDE; 35 const content::NotificationDetails& details) OVERRIDE;
36 36
37 // Gets a string identifier for the group name, for use in HTML. 37 // Gets a string identifier for the group name, for use in HTML.
38 static std::string ContentSettingsTypeToGroupName(ContentSettingsType type); 38 static std::string ContentSettingsTypeToGroupName(ContentSettingsType type);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 // Member variables --------------------------------------------------------- 110 // Member variables ---------------------------------------------------------
111 111
112 content::NotificationRegistrar notification_registrar_; 112 content::NotificationRegistrar notification_registrar_;
113 PrefChangeRegistrar pref_change_registrar_; 113 PrefChangeRegistrar pref_change_registrar_;
114 114
115 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler); 115 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler);
116 }; 116 };
117 117
118 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ 118 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698