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

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

Issue 729803002: Easy Sign-in: Use TPM RSA key to sign nonce in sign-in protocol (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
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_KEY_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_KEY_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_KEY_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_KEY_MANAGER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 const EasyUnlockDeviceKeyDataList& data_list, 75 const EasyUnlockDeviceKeyDataList& data_list,
76 base::ListValue* device_list); 76 base::ListValue* device_list);
77 static bool RemoteDeviceListToDeviceDataList( 77 static bool RemoteDeviceListToDeviceDataList(
78 const base::ListValue& device_list, 78 const base::ListValue& device_list,
79 EasyUnlockDeviceKeyDataList* data_list); 79 EasyUnlockDeviceKeyDataList* data_list);
80 80
81 // Gets key label for the given key index. 81 // Gets key label for the given key index.
82 static std::string GetKeyLabel(size_t key_index); 82 static std::string GetKeyLabel(size_t key_index);
83 83
84 private: 84 private:
85 void RefreshKeysWithTpmKeyPresent(const UserContext& user_context,
86 base::ListValue* remote_devices,
87 const RefreshKeysCallback& callback);
88
85 // Returns true if there are pending operations. 89 // Returns true if there are pending operations.
86 bool HasPendingOperations() const; 90 bool HasPendingOperations() const;
87 91
88 // Returns the next operations id. Currently only used for get keys ops. 92 // Returns the next operations id. Currently only used for get keys ops.
89 int GetNextOperationId(); 93 int GetNextOperationId();
90 94
91 // Runs the first pending op in |pending_ops_|. No-op if |pending_ops_| is 95 // Runs the first pending op in |pending_ops_|. No-op if |pending_ops_| is
92 // emtpy. 96 // emtpy.
93 void RunNextPendingOp(); 97 void RunNextPendingOp();
94 98
(...skipping 20 matching lines...) Expand all
115 std::deque<base::Closure> pending_ops_; 119 std::deque<base::Closure> pending_ops_;
116 120
117 base::WeakPtrFactory<EasyUnlockKeyManager> weak_ptr_factory_; 121 base::WeakPtrFactory<EasyUnlockKeyManager> weak_ptr_factory_;
118 122
119 DISALLOW_COPY_AND_ASSIGN(EasyUnlockKeyManager); 123 DISALLOW_COPY_AND_ASSIGN(EasyUnlockKeyManager);
120 }; 124 };
121 125
122 } // namespace chromeos 126 } // namespace chromeos
123 127
124 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_KEY_MANAGER_H_ 128 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_KEY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698