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

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: Rebase on ToT. Created 4 years, 3 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 fd98791b1995e9c1c65c4eb937b3297d873d626f..843935c61fb366e5f3e172aab8f8e97f79aa316a 100644
--- a/components/arc/bluetooth/arc_bluetooth_bridge.h
+++ b/components/arc/bluetooth/arc_bluetooth_bridge.h
@@ -268,6 +268,14 @@ class ArcBluetoothBridge
mojo::Array<uint8_t> value,
const SendIndicationCallback& callback) override;
+ // Bluetooth Mojo host interface - Bluetooth SDP functions
+ void GetSdpRecords(mojom::BluetoothAddressPtr remote_addr,
+ mojom::BluetoothUUIDPtr target_uuid) override;
+ void CreateSdpRecord(mojom::BluetoothSdpRecordPtr record_mojo,
+ 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;
@@ -365,6 +373,15 @@ class ArcBluetoothBridge
void OnSetDiscoverable(bool discoverable, bool success, uint32_t timeout);
void SetDiscoverable(bool discoverable, uint32_t timeout);
+ void OnGetServiceRecordsDone(
+ mojom::BluetoothAddressPtr remote_addr,
+ mojom::BluetoothUUIDPtr target_uuid,
+ const std::vector<bluez::BluetoothServiceRecordBlueZ>& records_bluez);
+ void OnGetServiceRecordsError(
+ mojom::BluetoothAddressPtr remote_addr,
+ mojom::BluetoothUUIDPtr target_uuid,
+ bluez::BluetoothServiceRecordBlueZ::ErrorCode error_code);
+
bool CalledOnValidThread();
mojo::Binding<mojom::BluetoothHost> binding_;

Powered by Google App Engine
This is Rietveld 408576698