| OLD | NEW |
| 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_LOGIN_PERFORMER_H_ | 5 #ifndef CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ |
| 6 #define CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ | 6 #define CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 void StartLoginCompletion(); | 188 void StartLoginCompletion(); |
| 189 | 189 |
| 190 // Starts authentication. | 190 // Starts authentication. |
| 191 void StartAuthentication(); | 191 void StartAuthentication(); |
| 192 void NotifyWhitelistCheckFailure(); | 192 void NotifyWhitelistCheckFailure(); |
| 193 | 193 |
| 194 // Makes sure that authenticator is created. | 194 // Makes sure that authenticator is created. |
| 195 void EnsureAuthenticator(); | 195 void EnsureAuthenticator(); |
| 196 void EnsureExtendedAuthenticator(); | 196 void EnsureExtendedAuthenticator(); |
| 197 | 197 |
| 198 // Actual implementation of LoginAsSupervisedUser that is run after trusted |
| 199 // values check. |
| 200 void TrustedLoginAsSupervisedUser(const UserContext& user_context); |
| 201 |
| 198 // Actual implementantion of PeformLogin that is run after trusted values | 202 // Actual implementantion of PeformLogin that is run after trusted values |
| 199 // check. | 203 // check. |
| 200 void DoPerformLogin(const UserContext& user_context, | 204 void DoPerformLogin(const UserContext& user_context, |
| 201 AuthorizationMode auth_mode); | 205 AuthorizationMode auth_mode); |
| 202 | 206 |
| 203 scoped_refptr<base::TaskRunner> task_runner_; | 207 scoped_refptr<base::TaskRunner> task_runner_; |
| 204 | 208 |
| 205 // Used for logging in. | 209 // Used for logging in. |
| 206 scoped_refptr<Authenticator> authenticator_; | 210 scoped_refptr<Authenticator> authenticator_; |
| 207 | 211 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 226 // Authorization mode type. | 230 // Authorization mode type. |
| 227 AuthorizationMode auth_mode_; | 231 AuthorizationMode auth_mode_; |
| 228 | 232 |
| 229 base::WeakPtrFactory<LoginPerformer> weak_factory_; | 233 base::WeakPtrFactory<LoginPerformer> weak_factory_; |
| 230 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); | 234 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); |
| 231 }; | 235 }; |
| 232 | 236 |
| 233 } // namespace chromeos | 237 } // namespace chromeos |
| 234 | 238 |
| 235 #endif // CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ | 239 #endif // CHROMEOS_LOGIN_AUTH_LOGIN_PERFORMER_H_ |
| OLD | NEW |