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

Unified Diff: device/bluetooth/bluetooth_adapter.h

Issue 1842223003: Remove outdated devices from Android device chooser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unit test for ItemChooserDialog Created 4 years, 8 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: 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;

Powered by Google App Engine
This is Rietveld 408576698