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

Unified Diff: device/bluetooth/bluetooth_adapter_mac.h

Issue 2339253002: bluetooth: mac: add connected LE devices to chooser (Closed)
Patch Set: Adding BluetoothAdapter::RetrievedConnectedPeripherals() and the implementation in BluetoothAdapter… Created 4 years, 3 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 994610b4a5f2cba5a7ece47b517b1c32764bcb38..07c89291ecbce43c8b5496aae3b601f4295a0e82 100644
--- a/device/bluetooth/bluetooth_adapter_mac.h
+++ b/device/bluetooth/bluetooth_adapter_mac.h
@@ -53,6 +53,10 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterMac
// Converts CBUUID into BluetoothUUID
static BluetoothUUID BluetoothUUIDWithCBUUID(CBUUID* UUID);
+ // Converts list of BluetoothUUID to NSArray of CBUUID. Returns nil if the
+ // list is empty.
+ static NSArray* CBUUIDArrayWithUUIDList(
+ BluetoothDevice::UUIDList services_uuids);
// BluetoothAdapter overrides:
std::string GetAddress() const override;
@@ -71,6 +75,7 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterMac
const base::Closure& callback,
const ErrorCallback& error_callback) override;
bool IsDiscovering() const override;
+ void RetrievedConnectedPeripherals() override;
UUIDList GetUUIDs() const override;
void CreateRfcommService(
const BluetoothUUID& uuid,

Powered by Google App Engine
This is Rietveld 408576698