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

Side by Side Diff: chromeos/login/auth/authenticator.h

Issue 608283003: Remove retail mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROMEOS_LOGIN_AUTH_AUTHENTICATOR_H_ 5 #ifndef CHROMEOS_LOGIN_AUTH_AUTHENTICATOR_H_
6 #define CHROMEOS_LOGIN_AUTH_AUTHENTICATOR_H_ 6 #define CHROMEOS_LOGIN_AUTH_AUTHENTICATOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 30 matching lines...) Expand all
41 const UserContext& user_context) = 0; 41 const UserContext& user_context) = 0;
42 42
43 // Given a user credentials in |user_context|, this method attempts to 43 // Given a user credentials in |user_context|, this method attempts to
44 // authenticate to unlock the computer. 44 // authenticate to unlock the computer.
45 // Must be called on the UI thread. 45 // Must be called on the UI thread.
46 virtual void AuthenticateToUnlock(const UserContext& user_context) = 0; 46 virtual void AuthenticateToUnlock(const UserContext& user_context) = 0;
47 47
48 // Initiates supervised user login. 48 // Initiates supervised user login.
49 virtual void LoginAsSupervisedUser(const UserContext& user_context) = 0; 49 virtual void LoginAsSupervisedUser(const UserContext& user_context) = 0;
50 50
51 // Initiates retail mode login.
52 virtual void LoginRetailMode() = 0;
53
54 // Initiates incognito ("browse without signing in") login. 51 // Initiates incognito ("browse without signing in") login.
55 virtual void LoginOffTheRecord() = 0; 52 virtual void LoginOffTheRecord() = 0;
56 53
57 // Initiates login into the public account identified by |user_context|. 54 // Initiates login into the public account identified by |user_context|.
58 virtual void LoginAsPublicSession(const UserContext& user_context) = 0; 55 virtual void LoginAsPublicSession(const UserContext& user_context) = 0;
59 56
60 // Initiates login into kiosk mode account identified by |app_user_id|. 57 // Initiates login into kiosk mode account identified by |app_user_id|.
61 // The |app_user_id| is a generated username for the account. 58 // The |app_user_id| is a generated username for the account.
62 // |use_guest_mount| specifies whether to force the session to use a 59 // |use_guest_mount| specifies whether to force the session to use a
63 // guest mount. If this is false, we use mount a public cryptohome. 60 // guest mount. If this is false, we use mount a public cryptohome.
64 virtual void LoginAsKioskAccount(const std::string& app_user_id, 61 virtual void LoginAsKioskAccount(const std::string& app_user_id,
65 bool use_guest_mount) = 0; 62 bool use_guest_mount) = 0;
66 63
67 // Completes retail mode login.
68 virtual void OnRetailModeAuthSuccess() = 0;
69
70 // Notifies caller that login was successful. Must be called on the UI thread. 64 // Notifies caller that login was successful. Must be called on the UI thread.
71 virtual void OnAuthSuccess() = 0; 65 virtual void OnAuthSuccess() = 0;
72 66
73 // Must be called on the UI thread. 67 // Must be called on the UI thread.
74 virtual void OnAuthFailure(const AuthFailure& error) = 0; 68 virtual void OnAuthFailure(const AuthFailure& error) = 0;
75 69
76 // Call these methods on the UI thread. 70 // Call these methods on the UI thread.
77 // If a password logs the user in online, but cannot be used to 71 // If a password logs the user in online, but cannot be used to
78 // mount his cryptohome, we expect that a password change has 72 // mount his cryptohome, we expect that a password change has
79 // occurred. 73 // occurred.
(...skipping 21 matching lines...) Expand all
101 95
102 private: 96 private:
103 friend class base::RefCountedThreadSafe<Authenticator>; 97 friend class base::RefCountedThreadSafe<Authenticator>;
104 98
105 DISALLOW_COPY_AND_ASSIGN(Authenticator); 99 DISALLOW_COPY_AND_ASSIGN(Authenticator);
106 }; 100 };
107 101
108 } // namespace chromeos 102 } // namespace chromeos
109 103
110 #endif // CHROMEOS_LOGIN_AUTH_AUTHENTICATOR_H_ 104 #endif // CHROMEOS_LOGIN_AUTH_AUTHENTICATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698