Index: device/bluetooth/bluetooth_adapter.h |
diff --git a/device/bluetooth/bluetooth_adapter.h b/device/bluetooth/bluetooth_adapter.h |
index 80bd1767ef84df4a0937b01c99ddff8204a7689e..95ca3b5a357b05f653bb1e8277d1e2303cbcca73 100644 |
--- a/device/bluetooth/bluetooth_adapter.h |
+++ b/device/bluetooth/bluetooth_adapter.h |
@@ -423,6 +423,15 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapter |
void NotifyGattDescriptorValueChanged(BluetoothGattDescriptor* descriptor, |
const std::vector<uint8_t>& value); |
+ // Removes from |devices_| any previously paired, connected or seen |
+ // devices which are no longer present. Notifies observers. Note: |
+ // this is only used by platforms where there is no notification of |
+ // lost devices. |
+ void RemoveTimedOutDevices(); |
scheib
2016/04/07 22:05:02
This seems odd to me to be called externally. Inst
perja
2016/04/08 07:47:35
Yeah, we could do that instead I guess. The recurr
scheib
2016/04/12 05:01:57
Tricky. Because it doesn't affect only the cache.
|
+ |
+ // The timeout in seconds used by RemoveTimedOutDevices. |
+ static const base::TimeDelta timeoutSec; |
+ |
protected: |
friend class base::RefCounted<BluetoothAdapter>; |
friend class BluetoothDiscoverySession; |