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

Unified Diff: device/bluetooth/bluetooth_low_energy_device_mac.h

Issue 2853933002: bluetooth: macOS: Support for extra didConnectPeripheral event from macOS. (Closed)
Patch Set: merge Created 3 years, 7 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
« no previous file with comments | « device/bluetooth/bluetooth_device_unittest.cc ('k') | device/bluetooth/bluetooth_low_energy_device_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « device/bluetooth/bluetooth_device_unittest.cc ('k') | device/bluetooth/bluetooth_low_energy_device_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698