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

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: Fix trybot failures. 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 c1a6ade02b395302cca0302fb0cefdd8e0974edb..3669749ed60586163c5a2a822109b3be404e8c11 100644
--- a/components/arc/bluetooth/arc_bluetooth_bridge.h
+++ b/components/arc/bluetooth/arc_bluetooth_bridge.h
@@ -10,6 +10,7 @@
#include <memory>
#include <string>
#include <unordered_map>
+#include <unordered_set>
#include <vector>
#include "base/callback.h"
@@ -266,6 +267,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;
@@ -360,6 +369,15 @@ class ArcBluetoothBridge
const base::Closure& success_callback,
const ErrorCallback& error_callback);
+ 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