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

Unified Diff: device/bluetooth/bluetooth_low_energy_device_mac.h

Issue 1538173003: Implementing GATT connection/disconnect on OS X. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Skip tests if Bluetooth Low Energy is not available Created 4 years, 9 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 ad713a53dfb8e2a278d814515b762fc774925abd..6f33c8918f4c6877868ece33e04a0cd0b15e2576 100644
--- a/device/bluetooth/bluetooth_low_energy_device_mac.h
+++ b/device/bluetooth/bluetooth_low_energy_device_mac.h
@@ -79,9 +79,6 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyDeviceMac
const device::BluetoothUUID& uuid,
const ConnectToServiceCallback& callback,
const ConnectToServiceErrorCallback& error_callback) override;
- void CreateGattConnection(
- const GattConnectionCallback& callback,
- const ConnectErrorCallback& error_callback) override;
// BluetoothDeviceMac override.
NSDate* GetLastUpdateTime() const override;
@@ -108,6 +105,16 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyDeviceMac
private:
friend class BluetoothAdapterMac;
friend class BluetoothAdapterMacTest;
+ friend class BluetoothTestMac;
+
+ // Returns the Bluetooth adapter.
+ BluetoothAdapterMac* GetMacAdapter();
+
+ // Returns the CoreBluetooth Peripheral.
+ CBPeripheral* GetPeripheral();
+
+ // Callback used when the CoreBluetooth Peripheral is disconnected.
+ void DidDisconnectPeripheral();
// CoreBluetooth data structure.
base::scoped_nsobject<CBPeripheral> peripheral_;
« no previous file with comments | « device/bluetooth/bluetooth_low_energy_central_manager_delegate.mm ('k') | device/bluetooth/bluetooth_low_energy_device_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698