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

Unified Diff: device/bluetooth/bluetooth_adapter_mac.h

Issue 2339253002: bluetooth: mac: add connected LE devices to chooser (Closed)
Patch Set: Better implementation 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 6ef24f430cddb771ebd09743fbd78b822b416652..f47f217a6cde419fdd8f5e44a04638ef53e7c3ef 100644
--- a/device/bluetooth/bluetooth_adapter_mac.h
+++ b/device/bluetooth/bluetooth_adapter_mac.h
@@ -70,6 +70,7 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterMac
const base::Closure& callback,
const ErrorCallback& error_callback) override;
bool IsDiscovering() const override;
+ void RetrieveUnknownGattConnectedDevices() override;
UUIDList GetUUIDs() const override;
void CreateRfcommService(
const BluetoothUUID& uuid,
@@ -180,6 +181,10 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterMac
BluetoothLowEnergyDeviceMac* GetBluetoothLowEnergyDeviceMac(
CBPeripheral* peripheral);
+ // Returns true if a new device collide with an existing device.
+ bool DoesCollideWithKnownDevice(CBPeripheral* peripheral,
+ BluetoothLowEnergyDeviceMac* device_mac);
+
std::string address_;
std::string name_;
bool classic_powered_;

Powered by Google App Engine
This is Rietveld 408576698