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

Unified Diff: components/cryptauth/remote_device_loader.h

Issue 2859053003: [EasyUnlock] Add beacon_seeds to RemoteDevice. (Closed)
Patch Set: load beacon seed in RemoteDevice Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: components/cryptauth/remote_device_loader.h
diff --git a/components/cryptauth/remote_device_loader.h b/components/cryptauth/remote_device_loader.h
index 5ef63945eecf5c0105831d098d043fa82704c224..155645dd85b85bc7fa5edc4ed48b5c3f523bbebc 100644
--- a/components/cryptauth/remote_device_loader.h
+++ b/components/cryptauth/remote_device_loader.h
@@ -62,9 +62,12 @@ class RemoteDeviceLoader {
virtual ~RemoteDeviceLoader();
// Loads the RemoteDevice objects. |callback| will be invoked upon completion.
+ // For space considerations, BeaconSeeds will only be loaded if
+ // |should_load_beacon_seeds| is true.
typedef base::Callback<void(const cryptauth::RemoteDeviceList&)>
RemoteDeviceCallback;
- virtual void Load(const RemoteDeviceCallback& callback);
+ virtual void Load(bool should_load_beacon_seeds,
+ const RemoteDeviceCallback& callback);
private:
// Called when the PSK is derived for each device. If the PSKs for all devices
@@ -72,6 +75,9 @@ class RemoteDeviceLoader {
void OnPSKDerived(const cryptauth::ExternalDeviceInfo& device,
const std::string& psk);
+ // True if the loader should include BeaconSeeds in the loaded RemoteDevices.
+ bool should_load_beacon_seeds_;
+
// The remaining devices whose PSK we're waiting on.
std::vector<cryptauth::ExternalDeviceInfo> remaining_devices_;

Powered by Google App Engine
This is Rietveld 408576698