Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Unified Diff: components/arc/bluetooth/arc_bluetooth_bridge.h

Issue 2149713002: arc: bluetooth: Add SDP host side support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,
« no previous file with comments | « no previous file | components/arc/bluetooth/arc_bluetooth_bridge.cc » ('j') | components/arc/bluetooth/arc_bluetooth_bridge.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698