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

Side by Side Diff: chrome/browser/chromeos/login/auth/parallel_authenticator.h

Issue 393343002: Rename "managed (mode|user)" to "supervised user" (part 7) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more alphabetize (and rebase again) Created 6 years, 5 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 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 CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_PARALLEL_AUTHENTICATOR_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_PARALLEL_AUTHENTICATOR_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_PARALLEL_AUTHENTICATOR_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_PARALLEL_AUTHENTICATOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 HAVE_NEW_PW = 11, // Obsolete (ClientLogin): We have verified new pw, 73 HAVE_NEW_PW = 11, // Obsolete (ClientLogin): We have verified new pw,
74 // time to migrate key. 74 // time to migrate key.
75 OFFLINE_LOGIN = 12, // Login succeeded offline. 75 OFFLINE_LOGIN = 12, // Login succeeded offline.
76 DEMO_LOGIN = 13, // Logged in as the demo user. 76 DEMO_LOGIN = 13, // Logged in as the demo user.
77 ONLINE_LOGIN = 14, // Offline and online login succeeded. 77 ONLINE_LOGIN = 14, // Offline and online login succeeded.
78 UNLOCK = 15, // Screen unlock succeeded. 78 UNLOCK = 15, // Screen unlock succeeded.
79 ONLINE_FAILED = 16, // Obsolete (ClientLogin): Online login disallowed, 79 ONLINE_FAILED = 16, // Obsolete (ClientLogin): Online login disallowed,
80 // but offline succeeded. 80 // but offline succeeded.
81 GUEST_LOGIN = 17, // Logged in guest mode. 81 GUEST_LOGIN = 17, // Logged in guest mode.
82 PUBLIC_ACCOUNT_LOGIN = 18, // Logged into a public account. 82 PUBLIC_ACCOUNT_LOGIN = 18, // Logged into a public account.
83 LOCALLY_MANAGED_USER_LOGIN = 19, // Logged in as a locally managed user. 83 SUPERVISED_USER_LOGIN = 19, // Logged in as a supervised user.
84 LOGIN_FAILED = 20, // Login denied. 84 LOGIN_FAILED = 20, // Login denied.
85 OWNER_REQUIRED = 21, // Login is restricted to the owner only. 85 OWNER_REQUIRED = 21, // Login is restricted to the owner only.
86 FAILED_USERNAME_HASH = 22, // Failed GetSanitizedUsername request. 86 FAILED_USERNAME_HASH = 22, // Failed GetSanitizedUsername request.
87 KIOSK_ACCOUNT_LOGIN = 23, // Logged into a kiosk account. 87 KIOSK_ACCOUNT_LOGIN = 23, // Logged into a kiosk account.
88 REMOVED_DATA_AFTER_FAILURE = 24, // Successfully removed the user's 88 REMOVED_DATA_AFTER_FAILURE = 24, // Successfully removed the user's
89 // cryptohome after a login failure. 89 // cryptohome after a login failure.
90 }; 90 };
91 91
92 explicit ParallelAuthenticator(AuthStatusConsumer* consumer); 92 explicit ParallelAuthenticator(AuthStatusConsumer* consumer);
93 93
(...skipping 11 matching lines...) Expand all
105 // Uses |profile| when doing URL fetches. 105 // Uses |profile| when doing URL fetches.
106 virtual void AuthenticateToLogin(Profile* profile, 106 virtual void AuthenticateToLogin(Profile* profile,
107 const UserContext& user_context) OVERRIDE; 107 const UserContext& user_context) OVERRIDE;
108 108
109 // Given |user_context|, this method attempts to authenticate to the cached 109 // Given |user_context|, this method attempts to authenticate to the cached
110 // user_context. This will never contact the server even if it's online. 110 // user_context. This will never contact the server even if it's online.
111 // The auth result is sent to AuthStatusConsumer in a same way as 111 // The auth result is sent to AuthStatusConsumer in a same way as
112 // AuthenticateToLogin does. 112 // AuthenticateToLogin does.
113 virtual void AuthenticateToUnlock(const UserContext& user_context) OVERRIDE; 113 virtual void AuthenticateToUnlock(const UserContext& user_context) OVERRIDE;
114 114
115 // Initiates locally managed user login. 115 // Initiates supervised user login.
116 // Creates cryptohome if missing or mounts existing one and 116 // Creates cryptohome if missing or mounts existing one and
117 // notifies consumer on the success/failure. 117 // notifies consumer on the success/failure.
118 virtual void LoginAsLocallyManagedUser( 118 virtual void LoginAsSupervisedUser(
119 const UserContext& user_context) OVERRIDE; 119 const UserContext& user_context) OVERRIDE;
120 120
121 // Initiates retail mode login. 121 // Initiates retail mode login.
122 // Mounts tmpfs and notifies consumer on the success/failure. 122 // Mounts tmpfs and notifies consumer on the success/failure.
123 virtual void LoginRetailMode() OVERRIDE; 123 virtual void LoginRetailMode() OVERRIDE;
124 124
125 // Initiates incognito ("browse without signing in") login. 125 // Initiates incognito ("browse without signing in") login.
126 // Mounts tmpfs and notifies consumer on the success/failure. 126 // Mounts tmpfs and notifies consumer on the success/failure.
127 virtual void LoginOffTheRecord() OVERRIDE; 127 virtual void LoginOffTheRecord() OVERRIDE;
128 128
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // When |remove_user_data_on_failure_| is set, we delay calling 242 // When |remove_user_data_on_failure_| is set, we delay calling
243 // consumer_->OnAuthFailure() until we removed the user cryptohome. 243 // consumer_->OnAuthFailure() until we removed the user cryptohome.
244 const AuthFailure* delayed_login_failure_; 244 const AuthFailure* delayed_login_failure_;
245 245
246 DISALLOW_COPY_AND_ASSIGN(ParallelAuthenticator); 246 DISALLOW_COPY_AND_ASSIGN(ParallelAuthenticator);
247 }; 247 };
248 248
249 } // namespace chromeos 249 } // namespace chromeos
250 250
251 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_PARALLEL_AUTHENTICATOR_H_ 251 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_PARALLEL_AUTHENTICATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/auth/mock_authenticator.cc ('k') | chrome/browser/chromeos/login/auth/parallel_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698