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

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

Issue 789793005: Revert of Clean up Smart Lock cryptohome keys logic: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CREATE_KEYS_OPERAT ION_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_CREATE_KEYS_OPERAT ION_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_CREATE_KEYS_OPERAT ION_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_CREATE_KEYS_OPERAT ION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 13 matching lines...) Expand all
24 typedef base::Callback<void (bool success)> CreateKeysCallback; 24 typedef base::Callback<void (bool success)> CreateKeysCallback;
25 EasyUnlockCreateKeysOperation( 25 EasyUnlockCreateKeysOperation(
26 const UserContext& user_context, 26 const UserContext& user_context,
27 const std::string& tpm_public_key, 27 const std::string& tpm_public_key,
28 const EasyUnlockDeviceKeyDataList& devices, 28 const EasyUnlockDeviceKeyDataList& devices,
29 const CreateKeysCallback& callback); 29 const CreateKeysCallback& callback);
30 ~EasyUnlockCreateKeysOperation(); 30 ~EasyUnlockCreateKeysOperation();
31 31
32 void Start(); 32 void Start();
33 33
34 // The UserContext returned will contain the new key if called after the
35 // operation has completed successfully.
36 const UserContext& user_context() const { return user_context_; } 34 const UserContext& user_context() const { return user_context_; }
37 35
38 private: 36 private:
39 class ChallengeCreator; 37 class ChallengeCreator;
40 38
41 void CreateKeyForDeviceAtIndex(size_t index); 39 void CreateKeyForDeviceAtIndex(size_t index);
42 void OnChallengeCreated(size_t index, bool success); 40 void OnChallengeCreated(size_t index, bool success);
43 void OnGetSystemSalt(size_t index, 41 void OnGetSystemSalt(size_t index,
44 const std::string& system_salt); 42 const std::string& system_salt);
45 void OnKeyCreated(size_t index, 43 void OnKeyCreated(size_t index,
(...skipping 12 matching lines...) Expand all
58 scoped_ptr<ChallengeCreator> challenge_creator_; 56 scoped_ptr<ChallengeCreator> challenge_creator_;
59 57
60 base::WeakPtrFactory<EasyUnlockCreateKeysOperation> weak_ptr_factory_; 58 base::WeakPtrFactory<EasyUnlockCreateKeysOperation> weak_ptr_factory_;
61 59
62 DISALLOW_COPY_AND_ASSIGN(EasyUnlockCreateKeysOperation); 60 DISALLOW_COPY_AND_ASSIGN(EasyUnlockCreateKeysOperation);
63 }; 61 };
64 62
65 } // namespace chromeos 63 } // namespace chromeos
66 64
67 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_CREATE_KEYS_OPE RATION_H_ 65 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_CREATE_KEYS_OPE RATION_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698