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

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: remove getExecutionContext() null check in PresentationRequest::reconnect() Created 3 years, 11 months 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 d09b9cdfe4b886c08c171feb6abf0e1162f7736b..b5cb2a837a33634f7e63f546c31146ae8f5783ba 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationConnection.h
+++ b/third_party/WebKit/Source/modules/presentation/PresentationConnection.h
@@ -73,6 +73,10 @@ class PresentationConnection final : public EventTargetWithInlineData,
// connection.
bool matches(const WebPresentationSessionInfo&) 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);
@@ -83,6 +87,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