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

Unified Diff: device/bluetooth/bluetooth_low_energy_device_mac.h

Issue 2853933002: bluetooth: macOS: Support for extra didConnectPeripheral event from macOS. (Closed)
Patch Set: Adding BluetoothLowEnergyDeviceMac::DidConnectPeripheral() Created 3 years, 8 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_device_mac.h
diff --git a/device/bluetooth/bluetooth_low_energy_device_mac.h b/device/bluetooth/bluetooth_low_energy_device_mac.h
index e2823d16eded4be599c5ab404dc5cc1d93a166ba..fd76e679e4ee2f6750b33c4a2d50af59254d6333 100644
--- a/device/bluetooth/bluetooth_low_energy_device_mac.h
+++ b/device/bluetooth/bluetooth_low_energy_device_mac.h
@@ -110,7 +110,10 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyDeviceMac
friend class BluetoothTestMac;
friend class BluetoothRemoteGattServiceMac;
- // Calls the macOS to discover primary services.
+ // Called by the adapter when the device is connected.
+ void DidConnectPeripheral();
+
+ // Calls macOS to discover primary services.
void DiscoverPrimaryServices();
// Sends notification if this device is ready with all services discovered.
@@ -143,6 +146,9 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyDeviceMac
// Whether the device is connectable.
bool connectable_;
+ // Whether the device is connected.
+ bool connected_;
+
// The peripheral's identifier, as returned by [CBPeripheral identifier].
std::string identifier_;

Powered by Google App Engine
This is Rietveld 408576698