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

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: resolve code review comments from haraken, Mark, and mlamouri Created 4 years 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 9aecc0f4c95e7ca5fe0ae9f76640a15f451eaddf..ae60e27488a87765aae3ea8b5b0dc04f40383054 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationController.h
+++ b/third_party/WebKit/Source/modules/presentation/PresentationController.h
@@ -73,6 +73,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