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

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

Issue 9994005: Separate handler initialization from page initialization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move anything that indirectly calls JS to InitializePage Created 8 years, 8 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_OPTIONS2_MANAGE_PROFILE_HANDLER2_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_MANAGE_PROFILE_HANDLER2_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_MANAGE_PROFILE_HANDLER2_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_MANAGE_PROFILE_HANDLER2_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/webui/options2/options_ui2.h" 9 #include "chrome/browser/ui/webui/options2/options_ui2.h"
10 10
11 namespace options2 { 11 namespace options2 {
12 12
13 // Chrome personal stuff profiles manage overlay UI handler. 13 // Chrome personal stuff profiles manage overlay UI handler.
14 class ManageProfileHandler : public OptionsPageUIHandler { 14 class ManageProfileHandler : public OptionsPageUIHandler {
15 public: 15 public:
16 ManageProfileHandler(); 16 ManageProfileHandler();
17 virtual ~ManageProfileHandler(); 17 virtual ~ManageProfileHandler();
18 18
19 // OptionsPageUIHandler: 19 // OptionsPageUIHandler:
20 virtual void GetLocalizedValues( 20 virtual void GetLocalizedValues(
21 base::DictionaryValue* localized_strings) OVERRIDE; 21 base::DictionaryValue* localized_strings) OVERRIDE;
22 virtual void InitializeHandler() OVERRIDE;
23 virtual void InitializePage() OVERRIDE; 22 virtual void InitializePage() OVERRIDE;
24 23
25 // WebUIMessageHandler: 24 // WebUIMessageHandler:
26 virtual void RegisterMessages() OVERRIDE; 25 virtual void RegisterMessages() OVERRIDE;
27 26
28 // content::NotificationObserver: 27 // content::NotificationObserver:
29 virtual void Observe(int type, 28 virtual void Observe(int type,
30 const content::NotificationSource& source, 29 const content::NotificationSource& source,
31 const content::NotificationDetails& details) OVERRIDE; 30 const content::NotificationDetails& details) OVERRIDE;
32 31
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 77
79 // URL for the current profile's GAIA picture. 78 // URL for the current profile's GAIA picture.
80 std::string gaia_picture_url_; 79 std::string gaia_picture_url_;
81 80
82 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); 81 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler);
83 }; 82 };
84 83
85 } // namespace options2 84 } // namespace options2
86 85
87 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_MANAGE_PROFILE_HANDLER2_H_ 86 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_MANAGE_PROFILE_HANDLER2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698