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*); |