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

Unified Diff: components/proximity_auth/bluetooth_low_energy_connection_finder.h

Issue 2897843002: Revert of [EasyUnlock] Add beacon_seeds to RemoteDevice. (Closed)
Patch Set: 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/proximity_auth/bluetooth_low_energy_connection_finder.h
diff --git a/components/proximity_auth/bluetooth_low_energy_connection_finder.h b/components/proximity_auth/bluetooth_low_energy_connection_finder.h
index be94be8e09afdd1fa36df7e775b05ba76031f012..b71acfcf4eff1f314801a6b4ac933c17d3c2a8f0 100644
--- a/components/proximity_auth/bluetooth_low_energy_connection_finder.h
+++ b/components/proximity_auth/bluetooth_low_energy_connection_finder.h
@@ -39,9 +39,11 @@
// advertised by the remote device.
//
// |remote_device|: The BLE remote device.
+ // |beacon_seeds|: The BeaconSeeds for the |remote_device.
// |bluetooth_throttler|: The reconnection throttler.
BluetoothLowEnergyConnectionFinder(
const cryptauth::RemoteDevice remote_device,
+ const std::vector<cryptauth::BeaconSeed>& beacon_seeds,
cryptauth::BluetoothThrottler* bluetooth_throttler);
~BluetoothLowEnergyConnectionFinder() override;
@@ -68,6 +70,7 @@
BluetoothLowEnergyConnectionFinder(
const cryptauth::RemoteDevice remote_device,
const std::string& service_uuid,
+ const std::vector<cryptauth::BeaconSeed>& beacon_seeds,
std::unique_ptr<cryptauth::BackgroundEidGenerator> eid_generator,
cryptauth::BluetoothThrottler* bluetooth_throttler);
@@ -115,6 +118,9 @@
// The UUID of the service used by the Weave socket.
std::string service_uuid_;
+ // The BeaconSeeds of the |remote_device|.
+ std::vector<cryptauth::BeaconSeed> beacon_seeds_;
+
// Generates the expected EIDs that may be advertised by |remote_device_|. If
// an EID matches, we know its a device we should connect to.
std::unique_ptr<cryptauth::BackgroundEidGenerator> eid_generator_;

Powered by Google App Engine
This is Rietveld 408576698