summaryrefslogtreecommitdiffstats
path: root/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.h
diff options
context:
space:
mode:
Diffstat (limited to 'components/proximity_auth/ble/bluetooth_low_energy_connection_finder.h')
-rw-r--r--components/proximity_auth/ble/bluetooth_low_energy_connection_finder.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.h b/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.h
index bc07b3c..5d4cc52 100644
--- a/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.h
+++ b/components/proximity_auth/ble/bluetooth_low_energy_connection_finder.h
@@ -25,6 +25,7 @@
namespace proximity_auth {
class BluetoothLowEnergyDeviceWhitelist;
+class BluetoothThrottler;
// This ConnectionFinder implementation is specialized in finding a Bluetooth
// Low Energy remote device.
@@ -38,6 +39,7 @@ class BluetoothLowEnergyConnectionFinder
const std::string& to_peripheral_char_uuid,
const std::string& from_peripheral_char_uuid,
const BluetoothLowEnergyDeviceWhitelist* device_whitelist,
+ BluetoothThrottler* bluetooth_throttler,
int max_number_of_tries);
~BluetoothLowEnergyConnectionFinder() override;
@@ -112,6 +114,10 @@ class BluetoothLowEnergyConnectionFinder
// cached or advertised. Not owned, must outlive this instance.
const BluetoothLowEnergyDeviceWhitelist* device_whitelist_;
+ // Throttles repeated connection attempts to the same device. This is a
+ // workaround for crbug.com/508919. Not owned, must outlive this instance.
+ BluetoothThrottler* bluetooth_throttler_;
+
// The Bluetooth adapter over which the Bluetooth connection will be made.
scoped_refptr<device::BluetoothAdapter> adapter_;