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

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

Issue 2476173002: bluetooth: Invalidate characteristics when disconnecting (Closed)
Patch Set: Fix test expectations 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/BluetoothAttributeInstanceMap.h
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.h b/third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.h
index 4c5276bcdd3bce30b00c896fecff0336d355bf80..edbb5b8fb8611a6542cd4ddcde985397395a62c6 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.h
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.h
@@ -50,9 +50,12 @@ class BluetoothAttributeInstanceMap final
std::unique_ptr<WebBluetoothRemoteGATTCharacteristicInit>,
BluetoothRemoteGATTService*);
+ // Returns true if a BluetoothRemoteGATTCharacteristic with
+ // |characteristicInstanceId| is in the map.
+ bool containsCharacteristic(const String& characteristicInstanceId);
+
// Removes all Attributes from the map.
- // TODO(crbug.com/654950): Remove characteristics and descriptors when
- // implemented.
+ // TODO(crbug.com/654950): Remove descriptors when implemented.
void Clear();
DECLARE_VIRTUAL_TRACE();

Powered by Google App Engine
This is Rietveld 408576698