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

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

Issue 2602523002: [Presentation API] Resolve PresentationRequest::reconnect() with existing presentation connection i… (Closed)
Patch Set: remove getExecutionContext() null check in PresentationRequest::reconnect() Created 3 years, 11 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/PresentationController.h
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationController.h b/third_party/WebKit/Source/modules/presentation/PresentationController.h
index 80a141ee5307a92ee38f65900440ee4046df99aa..421c8fb4194e2c706ae522700cefa66f77b9fd38 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationController.h
+++ b/third_party/WebKit/Source/modules/presentation/PresentationController.h
@@ -70,6 +70,13 @@ class MODULES_EXPORT PresentationController final
// Handling of running connections.
void registerConnection(PresentationConnection*);
+ // Return a connection in |m_connections| with id equals to |presentationId|,
+ // url equals to one of |presentationUrls|, and state is not terminated.
+ // Return null if such a connection does not exist.
+ PresentationConnection* findExistingConnection(
+ const blink::WebVector<blink::WebURL>& presentationUrls,
+ const blink::WebString& presentationId);
+
private:
PresentationController(LocalFrame&, WebPresentationClient*);

Powered by Google App Engine
This is Rietveld 408576698