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

Unified Diff: content/browser/bluetooth/web_bluetooth_service_impl.h

Issue 2015463004: bluetooth: Use BluetoothUUID instead of string when sending uuids (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-mojo-request-device
Patch Set: Lint Created 4 years, 7 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: content/browser/bluetooth/web_bluetooth_service_impl.h
diff --git a/content/browser/bluetooth/web_bluetooth_service_impl.h b/content/browser/bluetooth/web_bluetooth_service_impl.h
index 2034cbbca0ca820b7171c5590f7bb9f0f61cc83e..47c1923ab4099a8a6bf11a3070128beacaef048f 100644
--- a/content/browser/bluetooth/web_bluetooth_service_impl.h
+++ b/content/browser/bluetooth/web_bluetooth_service_impl.h
@@ -101,12 +101,12 @@ class WebBluetoothServiceImpl : public blink::mojom::WebBluetoothService,
void RemoteServerDisconnect(const mojo::String& device_id) override;
void RemoteServerGetPrimaryService(
const mojo::String& device_id,
- const mojo::String& service_uuid,
+ const std::unique_ptr<device::BluetoothUUID>& service_uuid,
const RemoteServerGetPrimaryServiceCallback& callback) override;
void RemoteServiceGetCharacteristics(
const mojo::String& service_instance_id,
blink::mojom::WebBluetoothGATTQueryQuantity quantity,
- const mojo::String& characteristics_uuid,
+ const std::unique_ptr<device::BluetoothUUID>& characteristics_uuid,
const RemoteServiceGetCharacteristicsCallback& callback) override;
void RemoteCharacteristicReadValue(
const mojo::String& characteristic_instance_id,
@@ -130,7 +130,7 @@ class WebBluetoothServiceImpl : public blink::mojom::WebBluetoothService,
// Should only be run after the services have been discovered for
// |device_address|.
void RemoteServerGetPrimaryServiceImpl(
- const std::string& service_uuid,
+ std::unique_ptr<device::BluetoothUUID> service_uuid,
const RemoteServerGetPrimaryServiceCallback& callback,
device::BluetoothDevice* device);

Powered by Google App Engine
This is Rietveld 408576698