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

Side by Side Diff: chrome/browser/chromeos/login/existing_user_controller.h

Issue 2817933003: Wait for Cryptohome service to be available on login. (Closed)
Patch Set: use OnceClosure for ContinueLoginWhenCryptohomeAvailable Created 3 years, 8 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 (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
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
255 void ContinueLoginWhenCryptohomeAvailable(
256 const base::OnceClosure continuation,
xiyuan 2017/04/18 16:38:00 This could not be "const" since we would std::move
Sergey Poromov 2017/04/19 11:08:25 Done.
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698