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

Side by Side Diff: chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.h

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 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_EASY_UNLOCK_EASY_UNLOCK_REAUTH_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_REAUTH_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_REAUTH_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_REAUTH_H_
7 7
8 #include <memory>
9
8 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
9 #include "base/macros.h" 11 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 12
12 namespace chromeos { 13 namespace chromeos {
13 14
14 class UserContext; 15 class UserContext;
15 16
16 // Responsible for locking the screen and reauthenticating the user so we can 17 // Responsible for locking the screen and reauthenticating the user so we can
17 // create new cryptohome keys for passwordless sign-in. 18 // create new cryptohome keys for passwordless sign-in.
18 class EasyUnlockReauth { 19 class EasyUnlockReauth {
19 public: 20 public:
20 typedef base::Callback<void(const UserContext&)> UserContextCallback; 21 typedef base::Callback<void(const UserContext&)> UserContextCallback;
21 22
22 // Launches the reauth screen to get the user context. If the screen fails 23 // Launches the reauth screen to get the user context. If the screen fails
23 // for some reason, then this function will return false. 24 // for some reason, then this function will return false.
24 static bool ReauthForUserContext(UserContextCallback callback); 25 static bool ReauthForUserContext(UserContextCallback callback);
25 26
26 DISALLOW_IMPLICIT_CONSTRUCTORS(EasyUnlockReauth); 27 DISALLOW_IMPLICIT_CONSTRUCTORS(EasyUnlockReauth);
27 }; 28 };
28 29
29 } // namespace chromeos 30 } // namespace chromeos
30 31
31 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_REAUTH_H_ 32 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_REAUTH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698