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

Side by Side Diff: chrome/browser/chromeos/login/login_display.h

Issue 12704002: Support for auth code based authentication flow for both app and web UI driven flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase4 Created 7 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_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 23 matching lines...) Expand all
34 // Cancels current password changed flow. 34 // Cancels current password changed flow.
35 virtual void CancelPasswordChangedFlow() = 0; 35 virtual void CancelPasswordChangedFlow() = 0;
36 36
37 // Create new Google account. 37 // Create new Google account.
38 virtual void CreateAccount() = 0; 38 virtual void CreateAccount() = 0;
39 39
40 // Create a new locally managed user. 40 // Create a new locally managed user.
41 virtual void CreateLocallyManagedUser(const string16& display_name, 41 virtual void CreateLocallyManagedUser(const string16& display_name,
42 const std::string& password) = 0; 42 const std::string& password) = 0;
43 43
44 // Complete sign process with specified |username| and |password|. 44 // Complete sign process with specified |credentials|.
45 // Used for new users authenticated through an extension. 45 // Used for new users authenticated through an extension.
46 virtual void CompleteLogin(const std::string& username, 46 virtual void CompleteLogin(const UserCredentials& credentials) = 0;
47 const std::string& password) = 0;
48 47
49 // Returns name of the currently connected network. 48 // Returns name of the currently connected network.
50 virtual string16 GetConnectedNetworkName() = 0; 49 virtual string16 GetConnectedNetworkName() = 0;
51 50
52 // Sign in using |username| and |password| specified. 51 // Sign in using |username| and |password| specified.
53 // Used for known users only. 52 // Used for known users only.
54 virtual void Login(const std::string& username, 53 virtual void Login(const UserCredentials& credentials) = 0;
55 const std::string& password) = 0;
56 54
57 // Sign in as a retail mode user. 55 // Sign in as a retail mode user.
58 virtual void LoginAsRetailModeUser() = 0; 56 virtual void LoginAsRetailModeUser() = 0;
59 57
60 // Sign in into guest session. 58 // Sign in into guest session.
61 virtual void LoginAsGuest() = 0; 59 virtual void LoginAsGuest() = 0;
62 60
63 // Decrypt cryptohome using user provided |old_password| 61 // Decrypt cryptohome using user provided |old_password|
64 // and migrate to new password. 62 // and migrate to new password.
65 virtual void MigrateUserData(const std::string& old_password) = 0; 63 virtual void MigrateUserData(const std::string& old_password) = 0;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 174
177 // Bounds of the login UI background. 175 // Bounds of the login UI background.
178 gfx::Rect background_bounds_; 176 gfx::Rect background_bounds_;
179 177
180 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); 178 DISALLOW_COPY_AND_ASSIGN(LoginDisplay);
181 }; 179 };
182 180
183 } // namespace chromeos 181 } // namespace chromeos
184 182
185 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ 183 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/existing_user_controller_browsertest.cc ('k') | chrome/browser/chromeos/login/login_performer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698