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 d5493b2755dd74ac3b46e96f876791d76272973c..63e392c4bbf5fe5860ee6aab7b8ea9599a9c4aa7 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. |
@@ -140,6 +143,9 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyDeviceMac |
base::scoped_nsobject<BluetoothLowEnergyPeripheralDelegate> |
peripheral_delegate_; |
+ // Whether the device is connected. |
+ bool connected_; |
+ |
// The peripheral's identifier, as returned by [CBPeripheral identifier]. |
std::string identifier_; |