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

Unified Diff: device/bluetooth/bluetooth_adapter_mac.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_mac.h
diff --git a/device/bluetooth/bluetooth_adapter_mac.h b/device/bluetooth/bluetooth_adapter_mac.h
index f1dcaec7244700fa54a090438bf861b325862c63..e604f969a0145a16842b90a0ba7ef9c535fb450d 100644
--- a/device/bluetooth/bluetooth_adapter_mac.h
+++ b/device/bluetooth/bluetooth_adapter_mac.h
@@ -70,6 +70,9 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterMac
const base::Closure& callback,
const ErrorCallback& error_callback) override;
bool IsDiscovering() const override;
+ std::unordered_map<BluetoothDevice*, BluetoothDevice::UUIDSet>
+ RetrieveGattConnectedDevicesWithDiscoveryFilter(
+ const BluetoothDiscoveryFilter* discovery_filter) override;
UUIDList GetUUIDs() const override;
void CreateRfcommService(
const BluetoothUUID& uuid,
@@ -176,10 +179,17 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterMac
// observers.
void AddPairedDevices();
+ std::unordered_map<BluetoothDevice*, BluetoothDevice::UUIDSet>
+ RetrieveGattConnectedDevicesWithService(const BluetoothUUID* uuid);
+
// Returns the BLE device associated with the CoreBluetooth peripheral.
BluetoothLowEnergyDeviceMac* GetBluetoothLowEnergyDeviceMac(
CBPeripheral* peripheral);
+ // Returns true if a new device collide with an existing device.
ortuno 2016/10/31 04:30:51 s/collide/collides/
jlebel 2016/11/07 01:43:17 Done.
+ bool DoesCollideWithKnownDevice(CBPeripheral* peripheral,
+ BluetoothLowEnergyDeviceMac* device_mac);
+
std::string address_;
bool classic_powered_;
int num_discovery_sessions_;

Powered by Google App Engine
This is Rietveld 408576698