| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_DESCRIPTOR_BLUEZ_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_DESCRIPTOR_BLUEZ_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_DESCRIPTOR_BLUEZ_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_DESCRIPTOR_BLUEZ_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "dbus/object_path.h" | 15 #include "dbus/object_path.h" |
| 16 #include "device/bluetooth/bluetooth_gatt_descriptor.h" | 16 #include "device/bluetooth/bluetooth_gatt_descriptor.h" |
| 17 #include "device/bluetooth/bluetooth_uuid.h" | 17 #include "device/bluetooth/bluetooth_uuid.h" |
| 18 | 18 |
| 19 namespace device { | 19 namespace device { |
| 20 | 20 |
| 21 class BluetoothGattCharacteristic; | 21 class BluetoothGattCharacteristic; |
| 22 | 22 |
| 23 } // namespace device | 23 } // namespace device |
| 24 | 24 |
| 25 namespace bluez { | 25 namespace bluez { |
| 26 | 26 |
| 27 class BluetoothRemoteGattCharacteristicBlueZ; | 27 class BluetoothRemoteGattCharacteristicBlueZ; |
| 28 | 28 |
| 29 // The BluetoothRemoteGattDescriptorBlueZ class implements | 29 // The BluetoothRemoteGattDescriptorBlueZ class implements |
| 30 // BluetoothGattDescriptor for remote GATT characteristic descriptors on the | 30 // BluetoothGattDescriptor for remote GATT characteristic descriptors for |
| 31 // Chrome OS platform. | 31 // platforms that use BlueZ. |
| 32 class BluetoothRemoteGattDescriptorBlueZ | 32 class BluetoothRemoteGattDescriptorBlueZ |
| 33 : public device::BluetoothGattDescriptor { | 33 : public device::BluetoothGattDescriptor { |
| 34 public: | 34 public: |
| 35 // device::BluetoothGattDescriptor overrides. | 35 // device::BluetoothGattDescriptor overrides. |
| 36 std::string GetIdentifier() const override; | 36 std::string GetIdentifier() const override; |
| 37 device::BluetoothUUID GetUUID() const override; | 37 device::BluetoothUUID GetUUID() const override; |
| 38 bool IsLocal() const override; | 38 bool IsLocal() const override; |
| 39 const std::vector<uint8_t>& GetValue() const override; | 39 const std::vector<uint8_t>& GetValue() const override; |
| 40 device::BluetoothGattCharacteristic* GetCharacteristic() const override; | 40 device::BluetoothGattCharacteristic* GetCharacteristic() const override; |
| 41 device::BluetoothGattCharacteristic::Permissions GetPermissions() | 41 device::BluetoothGattCharacteristic::Permissions GetPermissions() |
| (...skipping 30 matching lines...) Expand all Loading... |
| 72 // Note: This should remain the last member so it'll be destroyed and | 72 // Note: This should remain the last member so it'll be destroyed and |
| 73 // invalidate its weak pointers before any other members are destroyed. | 73 // invalidate its weak pointers before any other members are destroyed. |
| 74 base::WeakPtrFactory<BluetoothRemoteGattDescriptorBlueZ> weak_ptr_factory_; | 74 base::WeakPtrFactory<BluetoothRemoteGattDescriptorBlueZ> weak_ptr_factory_; |
| 75 | 75 |
| 76 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattDescriptorBlueZ); | 76 DISALLOW_COPY_AND_ASSIGN(BluetoothRemoteGattDescriptorBlueZ); |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace bluez | 79 } // namespace bluez |
| 80 | 80 |
| 81 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_DESCRIPTOR_BLUEZ_H_ | 81 #endif // DEVICE_BLUETOOTH_BLUETOOTH_REMOTE_GATT_DESCRIPTOR_BLUEZ_H_ |
| OLD | NEW |