Index: third_party/WebKit/Source/modules/presentation/PresentationConnection.h |
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationConnection.h b/third_party/WebKit/Source/modules/presentation/PresentationConnection.h |
index 2a995c3dc810f9cc4599146f55d8d5b71c9ff57a..ad85a2150735068c0a496468093725b7a40fcdcc 100644 |
--- a/third_party/WebKit/Source/modules/presentation/PresentationConnection.h |
+++ b/third_party/WebKit/Source/modules/presentation/PresentationConnection.h |
@@ -77,6 +77,10 @@ class PresentationConnection final : public EventTargetWithInlineData, |
// this connection. |
bool matches(WebPresentationConnectionClient*) const; |
+ // Returns true if this connection's id equals to |id| and its url equals to |
+ // |url|. |
+ bool matches(const String& id, const KURL&) const; |
+ |
// Notifies the connection about its state change. |
void didChangeState(WebPresentationConnectionState); |
@@ -87,6 +91,8 @@ class PresentationConnection final : public EventTargetWithInlineData, |
void didReceiveTextMessage(const String& message); |
void didReceiveBinaryMessage(const uint8_t* data, size_t length); |
+ WebPresentationConnectionState getState(); |
+ |
protected: |
// EventTarget implementation. |
void addedEventListener(const AtomicString& eventType, |