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

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

Issue 2474863004: bluetooth: Add characteristics to the device's attribute instance map (Closed)
Patch Set: clean up Created 4 years, 1 month 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/BluetoothDevice.h
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h
index 6f6fdaa395f7c1eaec7506a6071569f0962ece4c..eb3fd7196588f1a1253ea9c2b3dd389079426b76 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h
@@ -18,11 +18,13 @@
namespace blink {
class BluetoothAttributeInstanceMap;
+class BluetoothRemoteGATTCharacteristic;
class BluetoothRemoteGATTServer;
class BluetoothRemoteGATTService;
class ScriptPromise;
class ScriptPromiseResolver;
+struct WebBluetoothRemoteGATTCharacteristicInit;
struct WebBluetoothRemoteGATTService;
// BluetoothDevice represents a physical bluetooth device in the DOM. See IDL.
@@ -50,6 +52,12 @@ class BluetoothDevice final : public EventTargetWithInlineData,
std::unique_ptr<WebBluetoothRemoteGATTService>);
bool isValidService(const String& serviceInstanceId);
+ BluetoothRemoteGATTCharacteristic*
+ getOrCreateBluetoothRemoteGATTCharacteristic(
+ ExecutionContext*,
+ std::unique_ptr<WebBluetoothRemoteGATTCharacteristicInit>,
+ BluetoothRemoteGATTService*);
+
// We should disconnect from the device in all of the following cases:
// 1. When the object gets GarbageCollected e.g. it went out of scope.
// dispose() is called in this case.

Powered by Google App Engine
This is Rietveld 408576698