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

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

Issue 2157493003: Revert of bluetooth: Use WebBluetoothDeviceId instead of string (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-uuid-typemap
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: 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 99091024ac8c285697c40c4df798c74f3216956f..952d89dbef0c96290e7716fda3b761b2bbf41ef5 100644
--- a/content/browser/bluetooth/web_bluetooth_service_impl.h
+++ b/content/browser/bluetooth/web_bluetooth_service_impl.h
@@ -96,13 +96,13 @@
void RequestDevice(blink::mojom::WebBluetoothRequestDeviceOptionsPtr options,
const RequestDeviceCallback& callback) override;
void RemoteServerConnect(
- const WebBluetoothDeviceId& device_id,
+ const mojo::String& device_id,
const RemoteServerConnectCallback& callback) override;
- void RemoteServerDisconnect(const WebBluetoothDeviceId& device_id) override;
+ void RemoteServerDisconnect(const mojo::String& device_id) override;
void RemoteServerGetPrimaryServices(
- const WebBluetoothDeviceId& device_id,
+ const mojo::String& device_id,
blink::mojom::WebBluetoothGATTQueryQuantity quantity,
- const base::Optional<device::BluetoothUUID>& service_uuid,
+ const base::Optional<device::BluetoothUUID>& services_uuid,
const RemoteServerGetPrimaryServicesCallback& callback) override;
void RemoteServiceGetCharacteristics(
const mojo::String& service_instance_id,
@@ -131,7 +131,7 @@
// Should only be run after the services have been discovered for
// |device_address|.
void RemoteServerGetPrimaryServicesImpl(
- const WebBluetoothDeviceId& device_id,
+ const mojo::String& device_id,
blink::mojom::WebBluetoothGATTQueryQuantity quantity,
const base::Optional<device::BluetoothUUID>& services_uuid,
const RemoteServerGetPrimaryServicesCallback& callback,
@@ -147,11 +147,12 @@
// Callbacks for BluetoothDevice::CreateGattConnection.
void OnCreateGATTConnectionSuccess(
- const WebBluetoothDeviceId& device_id,
+ const std::string& device_id,
base::TimeTicks start_time,
const RemoteServerConnectCallback& callback,
std::unique_ptr<device::BluetoothGattConnection> connection);
void OnCreateGATTConnectionFailed(
+ const std::string& device_id,
base::TimeTicks start_time,
const RemoteServerConnectCallback& callback,
device::BluetoothDevice::ConnectErrorCode error_code);
@@ -193,7 +194,7 @@
// Queries the platform cache for a Device with |device_id| for |origin|.
// Fills in the |outcome| field and the |device| field if successful.
- CacheQueryResult QueryCacheForDevice(const WebBluetoothDeviceId& device_id);
+ CacheQueryResult QueryCacheForDevice(const std::string& device_id);
// Queries the platform cache for a Service with |service_instance_id|. Fills
// in the |outcome| field, and |device| and |service| fields if successful.

Powered by Google App Engine
This is Rietveld 408576698