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 available | |
Roman Sorokin (ftl)
2017/04/19 11:26:02
nit: dot at the end.
Sergey Poromov
2017/04/19 11:38:06
Done.
| |
255 void ContinueLoginWhenCryptohomeAvailable(base::OnceClosure continuation, | |
256 bool service_is_available); | |
257 | |
254 // Invokes |continuation| after verifying that the device is not disabled. | 258 // Invokes |continuation| after verifying that the device is not disabled. |
255 void ContinueLoginIfDeviceNotDisabled(const base::Closure& continuation); | 259 void ContinueLoginIfDeviceNotDisabled(const base::Closure& continuation); |
256 | 260 |
257 // Signs in as a new user. This is a continuation of CompleteLogin() that gets | 261 // 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. | 262 // invoked after it has been verified that the device is not disabled. |
259 void DoCompleteLogin(const UserContext& user_context); | 263 void DoCompleteLogin(const UserContext& user_context); |
260 | 264 |
261 // Signs in as a known user. This is a continuation of Login() that gets | 265 // 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. | 266 // invoked after it has been verified that the device is not disabled. |
263 void DoLogin(const UserContext& user_context, | 267 void DoLogin(const UserContext& user_context, |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
387 | 391 |
388 // Factory of callbacks. | 392 // Factory of callbacks. |
389 base::WeakPtrFactory<ExistingUserController> weak_factory_; | 393 base::WeakPtrFactory<ExistingUserController> weak_factory_; |
390 | 394 |
391 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); | 395 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); |
392 }; | 396 }; |
393 | 397 |
394 } // namespace chromeos | 398 } // namespace chromeos |
395 | 399 |
396 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ | 400 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
OLD | NEW |