| Index: device/bluetooth/bluez/bluetooth_local_gatt_descriptor_bluez.h
|
| diff --git a/device/bluetooth/bluez/bluetooth_local_gatt_descriptor_bluez.h b/device/bluetooth/bluez/bluetooth_local_gatt_descriptor_bluez.h
|
| index 566070ee22fba0cd97ca9935322a3adc7ddc6903..b0bee201ab046c11f79584169780b7d265ad50d9 100644
|
| --- a/device/bluetooth/bluez/bluetooth_local_gatt_descriptor_bluez.h
|
| +++ b/device/bluetooth/bluez/bluetooth_local_gatt_descriptor_bluez.h
|
| @@ -7,25 +7,46 @@
|
|
|
| #include "base/macros.h"
|
| #include "base/memory/weak_ptr.h"
|
| -#include "dbus/object_path.h"
|
| +#include "device/bluetooth/bluetooth_local_gatt_characteristic.h"
|
| #include "device/bluetooth/bluetooth_local_gatt_descriptor.h"
|
| +#include "device/bluetooth/bluetooth_uuid.h"
|
| #include "device/bluetooth/bluez/bluetooth_gatt_descriptor_bluez.h"
|
|
|
| namespace bluez {
|
|
|
| +class BluetoothLocalGattCharacteristicBlueZ;
|
| +
|
| // The BluetoothLocalGattDescriptorBlueZ class implements
|
| // BluetoothRemoteGattDescriptor for remote and local GATT characteristic
|
| -// descriptors
|
| -// for platforms that use BlueZ.
|
| +// descriptors for platforms that use BlueZ.
|
| class BluetoothLocalGattDescriptorBlueZ
|
| : public BluetoothGattDescriptorBlueZ,
|
| public device::BluetoothLocalGattDescriptor {
|
| public:
|
| - private:
|
| - explicit BluetoothLocalGattDescriptorBlueZ(
|
| - const dbus::ObjectPath& object_path);
|
| + // device::BluetoothLocalGattDescriptor overrides.
|
| + device::BluetoothUUID GetUUID() const override;
|
| + device::BluetoothGattCharacteristic::Permissions GetPermissions()
|
| + const override;
|
| +
|
| + BluetoothLocalGattCharacteristicBlueZ* GetCharacteristic() const;
|
| +
|
| + static base::WeakPtr<BluetoothLocalGattDescriptor> Create(
|
| + const device::BluetoothUUID& uuid,
|
| + device::BluetoothGattCharacteristic::Permissions permissions,
|
| + device::BluetoothLocalGattCharacteristic* characteristic);
|
| +
|
| + BluetoothLocalGattDescriptorBlueZ(
|
| + const device::BluetoothUUID& uuid,
|
| + BluetoothLocalGattCharacteristicBlueZ* characteristic);
|
| ~BluetoothLocalGattDescriptorBlueZ() override;
|
|
|
| + private:
|
| + // UUID of this descriptor.
|
| + device::BluetoothUUID uuid_;
|
| +
|
| + // Characteristic that contains this descriptor.
|
| + BluetoothLocalGattCharacteristicBlueZ* characteristic_;
|
| +
|
| // Note: This should remain the last member so it'll be destroyed and
|
| // invalidate its weak pointers before any other members are destroyed.
|
| base::WeakPtrFactory<BluetoothLocalGattDescriptorBlueZ> weak_ptr_factory_;
|
|
|