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

Side by Side Diff: chrome/browser/dom_ui/ntp_login_handler.h

Issue 6541006: WebUI: Move more files from chrome/browser/dom_ui to chrome/browser/webui. Part 3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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
« no previous file with comments | « chrome/browser/dom_ui/new_tab_ui.h ('k') | chrome/browser/dom_ui/ntp_login_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_DOM_UI_NTP_LOGIN_HANDLER_H_ 5 #ifndef CHROME_BROWSER_DOM_UI_NTP_LOGIN_HANDLER_H_
6 #define CHROME_BROWSER_DOM_UI_NTP_LOGIN_HANDLER_H_ 6 #define CHROME_BROWSER_DOM_UI_NTP_LOGIN_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/dom_ui/web_ui.h"
10 #include "chrome/browser/prefs/pref_member.h" 9 #include "chrome/browser/prefs/pref_member.h"
10 #include "chrome/browser/webui/web_ui.h"
11 #include "chrome/common/notification_observer.h" 11 #include "chrome/common/notification_observer.h"
12 12
13 // The NTP login handler currently simply displays the current logged in 13 // The NTP login handler currently simply displays the current logged in
14 // username at the top of the NTP (and update itself when that changes). 14 // username at the top of the NTP (and update itself when that changes).
15 // In the future it may expand to allow users to login from the NTP. 15 // In the future it may expand to allow users to login from the NTP.
16 class NTPLoginHandler : public WebUIMessageHandler, 16 class NTPLoginHandler : public WebUIMessageHandler,
17 public NotificationObserver { 17 public NotificationObserver {
18 public: 18 public:
19 NTPLoginHandler(); 19 NTPLoginHandler();
20 ~NTPLoginHandler(); 20 ~NTPLoginHandler();
(...skipping 12 matching lines...) Expand all
33 // Called from JS when the NTP is loaded. 33 // Called from JS when the NTP is loaded.
34 void HandleInitializeLogin(const ListValue* args); 34 void HandleInitializeLogin(const ListValue* args);
35 35
36 // Internal helper method 36 // Internal helper method
37 void UpdateLogin(); 37 void UpdateLogin();
38 38
39 StringPrefMember username_pref_; 39 StringPrefMember username_pref_;
40 }; 40 };
41 41
42 #endif // CHROME_BROWSER_DOM_UI_NTP_LOGIN_HANDLER_H_ 42 #endif // CHROME_BROWSER_DOM_UI_NTP_LOGIN_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/new_tab_ui.h ('k') | chrome/browser/dom_ui/ntp_login_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698