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

Unified Diff: device/bluetooth/bluetooth_low_energy_discovery_manager_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_low_energy_discovery_manager_mac.h
diff --git a/device/bluetooth/bluetooth_low_energy_discovery_manager_mac.h b/device/bluetooth/bluetooth_low_energy_discovery_manager_mac.h
index 20d63a123f92515ebb4a622f85e3e762ba81cf44..bc6a33f55880ed61983cc1c563f11b4e65a8e8fb 100644
--- a/device/bluetooth/bluetooth_low_energy_discovery_manager_mac.h
+++ b/device/bluetooth/bluetooth_low_energy_discovery_manager_mac.h
@@ -26,6 +26,7 @@ class BluetoothLowEnergyDiscoveryManagerMac {
class Observer {
public:
// Called when |this| manager has found a device or an update on a device.
+ // |advertisementData| can be nil if the peripheral is already connected.
virtual void LowEnergyDeviceUpdated(CBPeripheral* peripheral,
NSDictionary* advertisementData,
int rssi) = 0;
@@ -42,7 +43,7 @@ class BluetoothLowEnergyDiscoveryManagerMac {
// Initiates a discovery session.
// BluetoothLowEnergyDeviceMac objects discovered within a previous
// discovery session will be invalid.
- virtual void StartDiscovery(BluetoothDevice::UUIDList services_uuids);
+ virtual void StartDiscovery(NSArray* services_uuids);
// Stops a discovery session.
virtual void StopDiscovery();
@@ -85,7 +86,7 @@ class BluetoothLowEnergyDiscoveryManagerMac {
bool pending_;
// List of service UUIDs to scan.
- BluetoothDevice::UUIDList services_uuids_;
+ base::scoped_nsobject<NSArray> services_uuids_;
DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyDiscoveryManagerMac);
};

Powered by Google App Engine
This is Rietveld 408576698