| OLD | NEW |
| 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_EXISTING_USER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 void LoginAsPublicSessionInternal(const UserContext& user_context); | 244 void LoginAsPublicSessionInternal(const UserContext& user_context); |
| 245 | 245 |
| 246 // Performs sets of actions right prior to login has been started. | 246 // Performs sets of actions right prior to login has been started. |
| 247 void PerformPreLoginActions(const UserContext& user_context); | 247 void PerformPreLoginActions(const UserContext& user_context); |
| 248 | 248 |
| 249 // Performs set of actions when login has been completed or has been | 249 // Performs set of actions when login has been completed or has been |
| 250 // cancelled. If |start_auto_login_timer| is true than | 250 // cancelled. If |start_auto_login_timer| is true than |
| 251 // auto-login timer is started. | 251 // auto-login timer is started. |
| 252 void PerformLoginFinishedActions(bool start_auto_login_timer); | 252 void PerformLoginFinishedActions(bool start_auto_login_timer); |
| 253 | 253 |
| 254 // Invokes |continuation| after verifying that cryptohome service is |
| 255 // available. |
| 256 void ContinueLoginWhenCryptohomeAvailable(base::OnceClosure continuation, |
| 257 bool service_is_available); |
| 258 |
| 254 // Invokes |continuation| after verifying that the device is not disabled. | 259 // Invokes |continuation| after verifying that the device is not disabled. |
| 255 void ContinueLoginIfDeviceNotDisabled(const base::Closure& continuation); | 260 void ContinueLoginIfDeviceNotDisabled(const base::Closure& continuation); |
| 256 | 261 |
| 257 // Signs in as a new user. This is a continuation of CompleteLogin() that gets | 262 // Signs in as a new user. This is a continuation of CompleteLogin() that gets |
| 258 // invoked after it has been verified that the device is not disabled. | 263 // invoked after it has been verified that the device is not disabled. |
| 259 void DoCompleteLogin(const UserContext& user_context); | 264 void DoCompleteLogin(const UserContext& user_context); |
| 260 | 265 |
| 261 // Signs in as a known user. This is a continuation of Login() that gets | 266 // Signs in as a known user. This is a continuation of Login() that gets |
| 262 // invoked after it has been verified that the device is not disabled. | 267 // invoked after it has been verified that the device is not disabled. |
| 263 void DoLogin(const UserContext& user_context, | 268 void DoLogin(const UserContext& user_context, |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 | 392 |
| 388 // Factory of callbacks. | 393 // Factory of callbacks. |
| 389 base::WeakPtrFactory<ExistingUserController> weak_factory_; | 394 base::WeakPtrFactory<ExistingUserController> weak_factory_; |
| 390 | 395 |
| 391 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); | 396 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); |
| 392 }; | 397 }; |
| 393 | 398 |
| 394 } // namespace chromeos | 399 } // namespace chromeos |
| 395 | 400 |
| 396 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ | 401 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
| OLD | NEW |