| Index: third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
|
| diff --git a/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp b/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
|
| index 67f98aace0005002da40efd8c93f9f15bc0c5c73..48e4e20cdc83a1d330e5e1ac671738b73947fadd 100644
|
| --- a/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
|
| +++ b/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
|
| @@ -384,6 +384,10 @@ void PresentationConnection::didReceiveBinaryMessage(const uint8_t* data,
|
| ASSERT_NOT_REACHED();
|
| }
|
|
|
| +WebPresentationConnectionState PresentationConnection::getState() {
|
| + return m_state;
|
| +}
|
| +
|
| void PresentationConnection::close() {
|
| if (m_state != WebPresentationConnectionState::Connecting &&
|
| m_state != WebPresentationConnectionState::Connected) {
|
| @@ -412,6 +416,10 @@ bool PresentationConnection::matches(
|
| m_id == static_cast<String>(client->getId());
|
| }
|
|
|
| +bool PresentationConnection::matches(const String& id, const KURL& url) const {
|
| + return m_url == url && m_id == id;
|
| +}
|
| +
|
| void PresentationConnection::didChangeState(
|
| WebPresentationConnectionState state) {
|
| if (m_state == state)
|
|
|