Chromium Code Reviews| 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..3f26a397c03098e2a49b3ad124cd5e5324304b2a 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 condierations, BeaconSeeds will only be loaded if |
|
Ryan Hansberry
2017/05/09 02:32:19
considerations*
Tim Song
2017/05/10 21:58:08
Done.
|
| + // |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_; |