Chromium Code Reviews| 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. |