Chromium Code Reviews| 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..ad0640488c4efc55f6be0a14afdffe21de2115e2 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" |
|
rkc
2016/07/01 21:28:27
Nit: Already included in header.
puthik_chromium
2016/07/14 19:01:31
Done.
|
| #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,9 +42,13 @@ 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; |
| +using device::BluetoothTransport; |
| using device::BluetoothUUID; |
| namespace { |
| @@ -290,6 +297,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 +1069,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, |
| + BluetoothTransport device_type, |
| + 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, |
| + bool 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"; |
| } |