Index: components/arc/bluetooth/arc_bluetooth_bridge.h |
diff --git a/components/arc/bluetooth/arc_bluetooth_bridge.h b/components/arc/bluetooth/arc_bluetooth_bridge.h |
index cebf74f7253c0ffba1431be1f69f9004ea8b885f..4a1715a0ef792cdae06ccc2890cae9a5d8835bf3 100644 |
--- a/components/arc/bluetooth/arc_bluetooth_bridge.h |
+++ b/components/arc/bluetooth/arc_bluetooth_bridge.h |
@@ -24,6 +24,7 @@ |
#include "device/bluetooth/bluetooth_remote_gatt_descriptor.h" |
#include "device/bluetooth/bluetooth_remote_gatt_service.h" |
#include "device/bluetooth/bluez/bluetooth_adapter_bluez.h" |
+#include "device/bluetooth/bluez/bluetooth_service_record_bluez.h" |
#include "mojo/public/cpp/bindings/binding.h" |
namespace arc { |
@@ -190,6 +191,14 @@ class ArcBluetoothBridge |
void ReadRemoteRssi(mojom::BluetoothAddressPtr remote_addr, |
const ReadRemoteRssiCallback& callback) override; |
+ // Bluetooth Mojo host interface - Bluetooth SDP functions |
+ void GetSdpRecords(mojom::BluetoothAddressPtr remote_addr, |
+ const GetSdpRecordsCallback& callback) override; |
+ void CreateSdpRecord(mojom::BluetoothSdpRecordPtr record, |
+ const CreateSdpRecordCallback& callback) override; |
+ void RemoveSdpRecord(uint32_t service_handle, |
+ const RemoveSdpRecordCallback& callback) override; |
+ |
// Chrome observer callbacks |
void OnPoweredOn( |
const base::Callback<void(mojom::BluetoothAdapterState)>& callback) const; |
@@ -253,6 +262,22 @@ class ArcBluetoothBridge |
void OnGattNotifyStopDone( |
const DeregisterForGattNotificationCallback& callback) const; |
+ void OnGetServiceRecordsDone( |
+ const GetSdpRecordsCallback& callback, |
+ const std::vector<bluez::BluetoothServiceRecordBlueZ>& records) const; |
+ void OnGetServiceRecordsError( |
+ const GetSdpRecordsCallback& callback, |
+ bluez::BluetoothServiceRecordBlueZ::ErrorCode error_code) const; |
+ void OnCreateSdpRecordDone(const CreateSdpRecordCallback& callback, |
+ uint32_t service_handle) const; |
+ void OnCreateSdpRecordError( |
+ const CreateSdpRecordCallback& callback, |
+ bluez::BluetoothServiceRecordBlueZ::ErrorCode error_code) const; |
+ void OnRemoveSdpRecordDone(const RemoveSdpRecordCallback& callback) const; |
+ void OnRemoveSdpRecordError( |
+ const RemoveSdpRecordCallback& callback, |
+ bluez::BluetoothServiceRecordBlueZ::ErrorCode error_code) const; |
+ |
private: |
mojo::Array<mojom::BluetoothPropertyPtr> GetDeviceProperties( |
mojom::BluetoothPropertyType type, |