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

Unified Diff: device/bluetooth/bluetooth_remote_gatt_service_mac.h

Issue 2907033002: Bluetooth: macOS: Making code to get mac descriptors more coherent (Closed)
Patch Set: Merge Created 3 years, 6 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_remote_gatt_service_mac.h
diff --git a/device/bluetooth/bluetooth_remote_gatt_service_mac.h b/device/bluetooth/bluetooth_remote_gatt_service_mac.h
index 4b8d7c57ab8d9e173e37c4481a927dfcba2e58d7..9de69a60bccdea43de7cbf1a2113c4f6d6a02bdf 100644
--- a/device/bluetooth/bluetooth_remote_gatt_service_mac.h
+++ b/device/bluetooth/bluetooth_remote_gatt_service_mac.h
@@ -14,6 +14,7 @@
#include "device/bluetooth/bluetooth_remote_gatt_service.h"
@class CBCharacteristic;
+@class CBDescriptor;
@class CBPeripheral;
@class CBService;
@@ -22,6 +23,7 @@ namespace device {
class BluetoothAdapterMac;
class BluetoothDevice;
class BluetoothRemoteGattCharacteristicMac;
+class BluetoothRemoteGattDescriptorMac;
class BluetoothLowEnergyDeviceMac;
class DEVICE_BLUETOOTH_EXPORT BluetoothRemoteGattServiceMac
@@ -71,7 +73,10 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothRemoteGattServiceMac
CBService* GetService() const;
// Returns a remote characteristic based on the CBCharacteristic.
BluetoothRemoteGattCharacteristicMac* GetBluetoothRemoteGattCharacteristicMac(
- CBCharacteristic* characteristic) const;
+ CBCharacteristic* cb_characteristic) const;
+ // Returns a remote descriptor based on the CBDescriptor.
+ BluetoothRemoteGattDescriptorMac* GetBluetoothRemoteGattDescriptorMac(
+ CBDescriptor* cb_descriptor) const;
// bluetooth_device_mac_ owns instances of this class.
BluetoothLowEnergyDeviceMac* bluetooth_device_mac_;
« no previous file with comments | « device/bluetooth/bluetooth_low_energy_device_mac.mm ('k') | device/bluetooth/bluetooth_remote_gatt_service_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698