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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/login_ui.h

Issue 7015024: Converted from DOM to WebUI for new login method (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updating the patch after confirming with the most recent version of the code Created 9 years, 6 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_CHROMEOS_LOGIN_LOGIN_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_LOGIN_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_LOGIN_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_LOGIN_UI_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 virtual void Login(const std::string& username, 45 virtual void Login(const std::string& username,
46 const std::string& password) = 0; 46 const std::string& password) = 0;
47 47
48 // Sign in into Guest session. 48 // Sign in into Guest session.
49 virtual void LoginAsGuest() = 0; 49 virtual void LoginAsGuest() = 0;
50 // Let the delegate know about the handler it is supposed to be using. 50 // Let the delegate know about the handler it is supposed to be using.
51 virtual void set_login_handler(LoginUIHandler* login_handler) { 51 virtual void set_login_handler(LoginUIHandler* login_handler) {
52 login_handler_ = login_handler; 52 login_handler_ = login_handler;
53 } 53 }
54 protected: 54 protected:
55 // Reference to the DOM handling layer for the login screen 55 // Reference to the WebUI handling layer for the login screen
56 LoginUIHandler* login_handler_; 56 LoginUIHandler* login_handler_;
57 57
58 virtual ~LoginUIHandlerDelegate(); 58 virtual ~LoginUIHandlerDelegate();
59 }; 59 };
60 60
61 // Main LoginUI handling function. It handles the WebUI hooks that are supplied 61 // Main LoginUI handling function. It handles the WebUI hooks that are supplied
62 // for the login page to use for authentication. 62 // for the login page to use for authentication.
63 class LoginUIHandler : public WebUIMessageHandler { 63 class LoginUIHandler : public WebUIMessageHandler {
64 public: 64 public:
65 LoginUIHandler(); 65 LoginUIHandler();
(...skipping 25 matching lines...) Expand all
91 91
92 static RefCountedMemory* GetFaviconResourceBytes(); 92 static RefCountedMemory* GetFaviconResourceBytes();
93 93
94 private: 94 private:
95 DISALLOW_COPY_AND_ASSIGN(LoginUI); 95 DISALLOW_COPY_AND_ASSIGN(LoginUI);
96 }; 96 };
97 97
98 } // namespace chromeos 98 } // namespace chromeos
99 99
100 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_LOGIN_UI_H_ 100 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_LOGIN_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_input_api.cc ('k') | chrome/browser/ui/webui/chromeos/login/login_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698