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

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

Issue 2478013002: bluetooth: Invalidate services upon disconnection (Closed)
Patch Set: Address scheib's comments 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.cpp
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.cpp b/third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.cpp
index f7de87318e95774744754e314ca8ee5de3dffe9c..8fef103f1ec53ec516ad048d1226023dc98134da 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.cpp
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothAttributeInstanceMap.cpp
@@ -33,6 +33,15 @@ BluetoothAttributeInstanceMap::getOrCreateBluetoothRemoteGATTService(
return service;
}
+bool BluetoothAttributeInstanceMap::containsService(
+ const String& serviceInstanceId) {
+ return m_serviceIdToObject.contains(serviceInstanceId);
+}
+
+void BluetoothAttributeInstanceMap::Clear() {
+ m_serviceIdToObject.clear();
+}
+
DEFINE_TRACE(BluetoothAttributeInstanceMap) {
visitor->trace(m_device);
visitor->trace(m_serviceIdToObject);

Powered by Google App Engine
This is Rietveld 408576698