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

Unified Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.h

Issue 2565913002: [Onion Soup] Move WebBluetoothImpl from //content/renderer/bluetooth to Blink's bluetooth module (Closed)
Patch Set: renamed BluetoothUUID.typemap to Bluetooth.typemap Created 3 years, 12 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: third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.h
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.h b/third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.h
index 17177a84555178f54514bfa6707e62c7538f6060..50ba595002becbe6d82f0851f73676f5b34e8c36 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.h
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.h
@@ -16,9 +16,6 @@ namespace blink {
class BluetoothDevice;
class ExecutionContext;
-struct WebBluetoothRemoteGATTCharacteristicInit;
-struct WebBluetoothRemoteGATTService;
-
// Map that holds all GATT attributes, i.e. BluetoothRemoteGATTService,
// BluetoothRemoteGATTCharacteristic, BluetoothRemoteGATTDescriptor, for
// the BluetoothDevice passed in when constructing the object.
@@ -33,7 +30,10 @@ class BluetoothAttributeInstanceMap final
// Otherwise returns the BluetoothRemoteGATTService object already
// in the map.
BluetoothRemoteGATTService* getOrCreateBluetoothRemoteGATTService(
- std::unique_ptr<WebBluetoothRemoteGATTService>);
+ const String& serviceInstanceId,
+ const String& uuid,
+ bool isPrimary,
+ const String& deviceInstanceId);
// Returns true if a BluetoothRemoteGATTService with |serviceInstanceId|
// is in the map.
@@ -46,7 +46,10 @@ class BluetoothAttributeInstanceMap final
BluetoothRemoteGATTCharacteristic*
getOrCreateBluetoothRemoteGATTCharacteristic(
ExecutionContext*,
- std::unique_ptr<WebBluetoothRemoteGATTCharacteristicInit>,
+ const String& characteristicInstanceId,
+ const String& serviceInstanceId,
+ const String& uuid,
+ uint32_t characteristicProperties,
BluetoothRemoteGATTService*);
// Returns true if a BluetoothRemoteGATTCharacteristic with

Powered by Google App Engine
This is Rietveld 408576698