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

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationConnectionList.h

Issue 2874483002: [Presentation API] Remove closed connections from PresentationConnectionList (Closed)
Patch Set: rebase with master Created 3 years, 7 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/presentation/PresentationConnectionList.h
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.h b/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.h
index cf3f4eacb60814de7022d2321d98180f9c30d473..055cee415103b43f554eb4dc612adf753a34f2ce 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.h
+++ b/third_party/WebKit/Source/modules/presentation/PresentationConnectionList.h
@@ -37,6 +37,9 @@ class MODULES_EXPORT PresentationConnectionList final
DEFINE_ATTRIBUTE_EVENT_LISTENER(connectionavailable);
void AddConnection(PresentationConnection*);
+ // Remove connection from connection list. Returns true if connection is
+ // successfully removed; Returns false if connection does not exist.
+ bool RemoveConnection(WebPresentationConnection*);
void DispatchConnectionAvailableEvent(PresentationConnection*);
bool IsEmpty();

Powered by Google App Engine
This is Rietveld 408576698