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_; |