| Index: components/arc/bluetooth/arc_bluetooth_bridge.cc
|
| diff --git a/components/arc/bluetooth/arc_bluetooth_bridge.cc b/components/arc/bluetooth/arc_bluetooth_bridge.cc
|
| index 5ba17cc2dcdd91aee6c212d06c266d3a27e92605..0b27315f36d6e2fee2825021d1380c9ae498a431 100644
|
| --- a/components/arc/bluetooth/arc_bluetooth_bridge.cc
|
| +++ b/components/arc/bluetooth/arc_bluetooth_bridge.cc
|
| @@ -24,6 +24,9 @@
|
| #include "device/bluetooth/bluetooth_device.h"
|
| #include "device/bluetooth/bluetooth_gatt_connection.h"
|
| #include "device/bluetooth/bluetooth_gatt_notify_session.h"
|
| +#include "device/bluetooth/bluetooth_local_gatt_characteristic.h"
|
| +#include "device/bluetooth/bluetooth_local_gatt_descriptor.h"
|
| +#include "device/bluetooth/bluetooth_local_gatt_service.h"
|
| #include "device/bluetooth/bluetooth_remote_gatt_characteristic.h"
|
| #include "device/bluetooth/bluetooth_remote_gatt_descriptor.h"
|
| #include "device/bluetooth/bluetooth_remote_gatt_service.h"
|
| @@ -39,6 +42,9 @@ using device::BluetoothGattNotifySession;
|
| using device::BluetoothGattCharacteristic;
|
| using device::BluetoothGattDescriptor;
|
| using device::BluetoothGattService;
|
| +using device::BluetoothLocalGattCharacteristic;
|
| +using device::BluetoothLocalGattDescriptor;
|
| +using device::BluetoothLocalGattService;
|
| using device::BluetoothRemoteGattCharacteristic;
|
| using device::BluetoothRemoteGattDescriptor;
|
| using device::BluetoothRemoteGattService;
|
| @@ -290,6 +296,44 @@ void ArcBluetoothBridge::GattDescriptorValueChanged(
|
| // Placeholder for GATT client functionality
|
| }
|
|
|
| +void ArcBluetoothBridge::OnCharacteristicReadRequest(
|
| + const BluetoothDevice* device,
|
| + const BluetoothLocalGattCharacteristic* characteristic,
|
| + int offset,
|
| + const ValueCallback& callback,
|
| + const ErrorCallback& error_callback) {}
|
| +
|
| +void ArcBluetoothBridge::OnCharacteristicWriteRequest(
|
| + const BluetoothDevice* device,
|
| + const BluetoothLocalGattCharacteristic* characteristic,
|
| + const std::vector<uint8_t>& value,
|
| + int offset,
|
| + const base::Closure& callback,
|
| + const ErrorCallback& error_callback) {}
|
| +
|
| +void ArcBluetoothBridge::OnDescriptorReadRequest(
|
| + const BluetoothDevice* device,
|
| + const BluetoothLocalGattDescriptor* descriptor,
|
| + int offset,
|
| + const ValueCallback& callback,
|
| + const ErrorCallback& error_callback) {}
|
| +
|
| +void ArcBluetoothBridge::OnDescriptorWriteRequest(
|
| + const BluetoothDevice* device,
|
| + const BluetoothLocalGattDescriptor* descriptor,
|
| + const std::vector<uint8_t>& value,
|
| + int offset,
|
| + const base::Closure& callback,
|
| + const ErrorCallback& error_callback) {}
|
| +
|
| +void ArcBluetoothBridge::OnNotificationsStart(
|
| + const BluetoothDevice* device,
|
| + const BluetoothLocalGattCharacteristic* characteristic) {}
|
| +
|
| +void ArcBluetoothBridge::OnNotificationsStop(
|
| + const BluetoothDevice* device,
|
| + const BluetoothLocalGattCharacteristic* characteristic) {}
|
| +
|
| void ArcBluetoothBridge::EnableAdapter(const EnableAdapterCallback& callback) {
|
| DCHECK(bluetooth_adapter_);
|
| if (!bluetooth_adapter_->IsPowered()) {
|
| @@ -1024,6 +1068,44 @@ void ArcBluetoothBridge::ReadRemoteRssi(
|
| callback.Run(rssi);
|
| }
|
|
|
| +void ArcBluetoothBridge::AddService(mojom::BluetoothGattServiceIDPtr service_id,
|
| + int32_t num_handles,
|
| + const AddServiceCallback& callback) {}
|
| +
|
| +void ArcBluetoothBridge::AddCharacteristic(
|
| + int32_t service_handle,
|
| + mojom::BluetoothUUIDPtr uuid,
|
| + int32_t properties,
|
| + int32_t permissions,
|
| + const AddCharacteristicCallback& callback) {}
|
| +
|
| +void ArcBluetoothBridge::AddDescriptor(int32_t service_handle,
|
| + mojom::BluetoothUUIDPtr uuid,
|
| + int32_t permissions,
|
| + const AddDescriptorCallback& callback) {}
|
| +
|
| +void ArcBluetoothBridge::StartService(int32_t service_handle,
|
| + int32_t transport,
|
| + const StartServiceCallback& callback) {}
|
| +
|
| +void ArcBluetoothBridge::StopService(int32_t service_handle,
|
| + const StopServiceCallback& callback) {}
|
| +
|
| +void ArcBluetoothBridge::DeleteService(int32_t service_handle,
|
| + const DeleteServiceCallback& callback) {}
|
| +
|
| +void ArcBluetoothBridge::SendIndication(
|
| + int32_t attribute_handle,
|
| + mojom::BluetoothAddressPtr address,
|
| + int32_t confirm,
|
| + mojo::Array<uint8_t> value,
|
| + const SendIndicationCallback& callback) {}
|
| +
|
| +void ArcBluetoothBridge::SendResponse(int32_t trans_id,
|
| + int32_t status,
|
| + mojo::Array<uint8_t> value,
|
| + const SendResponseCallback& callback) {}
|
| +
|
| void ArcBluetoothBridge::OnDiscoveryError() {
|
| LOG(WARNING) << "failed to change discovery state";
|
| }
|
|
|