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

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

Issue 2602523002: [Presentation API] Resolve PresentationRequest::reconnect() with existing presentation connection i… (Closed)
Patch Set: 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/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,

Powered by Google App Engine
This is Rietveld 408576698