| Index: device/bluetooth/device.h
|
| diff --git a/device/bluetooth/device.h b/device/bluetooth/device.h
|
| index 953b80bfb38a4075c9d75a11d3924fa5d1024bcc..223f19d7f7aab6899dfecd05978886f0006d876f 100644
|
| --- a/device/bluetooth/device.h
|
| +++ b/device/bluetooth/device.h
|
| @@ -67,6 +67,17 @@ class Device : public mojom::Device, public device::BluetoothAdapter::Observer {
|
| void GetDescriptors(const std::string& service_id,
|
| const std::string& characteristic_id,
|
| const GetDescriptorsCallback& callback) override;
|
| + void ReadValueForDescriptor(
|
| + const std::string& service_id,
|
| + const std::string& characteristic_id,
|
| + const std::string& descriptor_id,
|
| + const ReadValueForDescriptorCallback& callback) override;
|
| + void WriteValueForDescriptor(
|
| + const std::string& service_id,
|
| + const std::string& characteristic_id,
|
| + const std::string& descriptor_id,
|
| + const std::vector<uint8_t>& value,
|
| + const WriteValueForDescriptorCallback& callback) override;
|
|
|
| private:
|
| Device(scoped_refptr<device::BluetoothAdapter> adapter,
|
| @@ -92,6 +103,19 @@ class Device : public mojom::Device, public device::BluetoothAdapter::Observer {
|
| const WriteValueForCharacteristicCallback& callback,
|
| device::BluetoothGattService::GattErrorCode error_code);
|
|
|
| + void OnReadRemoteDescriptor(const ReadValueForDescriptorCallback& callback,
|
| + const std::vector<uint8_t>& value);
|
| +
|
| + void OnReadRemoteDescriptorError(
|
| + const ReadValueForDescriptorCallback& callback,
|
| + device::BluetoothGattService::GattErrorCode error_code);
|
| +
|
| + void OnWriteRemoteDescriptor(const WriteValueForDescriptorCallback& callback);
|
| +
|
| + void OnWriteRemoteDescriptorError(
|
| + const WriteValueForDescriptorCallback& callback,
|
| + device::BluetoothGattService::GattErrorCode error_code);
|
| +
|
| const std::string& GetAddress();
|
|
|
| // The current BluetoothAdapter.
|
|
|