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

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

Issue 585213002: [Easy signin] Wire up userClick auth attempt to easy unlock app and back (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@easy_signin_focused_user_changed_observer
Patch Set: fix screenlock private test Created 6 years, 2 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_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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Returns true if there are pending operations. 85 // Returns true if there are pending operations.
86 bool HasPendingOperations() const; 86 bool HasPendingOperations() const;
87 87
88 // Returns the next operations id. Currently only used for get keys ops. 88 // Returns the next operations id. Currently only used for get keys ops.
89 int GetNextOperationId(); 89 int GetNextOperationId();
90 90
91 // Callback invoked after create keys op. 91 // Callback invoked after create keys op.
92 void OnKeysCreated(const UserContext& user_context, 92 void OnKeysCreated(size_t remove_start_index,
93 const EasyUnlockDeviceKeyDataList& devices,
94 const RefreshKeysCallback& callback, 93 const RefreshKeysCallback& callback,
95 bool create_success); 94 bool create_success);
96 95
97 // Callback invoked after remove keys op. 96 // Callback invoked after remove keys op.
98 void OnKeysRemoved(const RemoveKeysCallback& callback, bool remove_success); 97 void OnKeysRemoved(const RemoveKeysCallback& callback, bool remove_success);
99 98
100 // Callback invoked after get keys op. 99 // Callback invoked after get keys op.
101 void OnKeysFetched(int op_id, 100 void OnKeysFetched(int op_id,
102 const GetDeviceDataListCallback& callback, 101 const GetDeviceDataListCallback& callback,
103 bool fetch_success, 102 bool fetch_success,
104 const EasyUnlockDeviceKeyDataList& fetched_data); 103 const EasyUnlockDeviceKeyDataList& fetched_data);
105 104
106 int operation_id_; 105 int operation_id_;
107 106
108 scoped_ptr<EasyUnlockCreateKeysOperation> create_keys_op_; 107 scoped_ptr<EasyUnlockCreateKeysOperation> create_keys_op_;
109 scoped_ptr<EasyUnlockRemoveKeysOperation> remove_keys_op_; 108 scoped_ptr<EasyUnlockRemoveKeysOperation> remove_keys_op_;
110 std::map<int, EasyUnlockGetKeysOperation*> get_keys_ops_; 109 std::map<int, EasyUnlockGetKeysOperation*> get_keys_ops_;
111 110
112 base::WeakPtrFactory<EasyUnlockKeyManager> weak_ptr_factory_; 111 base::WeakPtrFactory<EasyUnlockKeyManager> weak_ptr_factory_;
113 112
114 DISALLOW_COPY_AND_ASSIGN(EasyUnlockKeyManager); 113 DISALLOW_COPY_AND_ASSIGN(EasyUnlockKeyManager);
115 }; 114 };
116 115
117 } // namespace chromeos 116 } // namespace chromeos
118 117
119 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_KEY_MANAGER_H_ 118 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EASY_UNLOCK_EASY_UNLOCK_KEY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698