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

Unified Diff: device/bluetooth/bluetooth_adapter.h

Issue 2339253002: bluetooth: mac: add connected LE devices to chooser (Closed)
Patch Set: Implementing RetrieveGattConnectedDevicesWithDiscoveryFilter() with tests Created 4 years, 2 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 ea2b48c8efeb12053356766e9bcfe88f0d3a201f..6d3efa8a962af80d76ec363191dd8940ebeb80bb 100644
--- a/device/bluetooth/bluetooth_adapter.h
+++ b/device/bluetooth/bluetooth_adapter.h
@@ -11,6 +11,7 @@
#include <memory>
#include <set>
#include <string>
+#include <unordered_map>
#include <utility>
#include <vector>
@@ -317,6 +318,13 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapter
// Indicates whether the adapter is currently discovering new devices.
virtual bool IsDiscovering() const = 0;
+ // This function get all the connected peripherals into |devices_|.
scheib 2016/10/28 20:35:50 Let's fix up comments some. First, GetDevices() is
jlebel 2016/11/07 01:43:17 Done.
+ // TODO(crbug.com/653032): Needs to be implemented for Android, ChromeOS and
+ // Windows.
+ virtual std::unordered_map<BluetoothDevice*, BluetoothDevice::UUIDSet>
+ RetrieveGattConnectedDevicesWithDiscoveryFilter(
+ const BluetoothDiscoveryFilter* discovery_filter);
+
// Requests the adapter to start a new discovery session. On success, a new
// instance of BluetoothDiscoverySession will be returned to the caller via
// |callback| and the adapter will be discovering nearby Bluetooth devices.

Powered by Google App Engine
This is Rietveld 408576698