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

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

Issue 2801823003: [Presentation API] Change connection to 'connected' if start a presentation with "https://www.googl… (Closed)
Patch Set: fix windows compile error Created 3 years, 8 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/PresentationReceiver.h
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationReceiver.h b/third_party/WebKit/Source/modules/presentation/PresentationReceiver.h
index e29f745d06e9c27b8817d90c9f61efd5711cafe1..1d03481b65495254b085584bc16a346ff7fc925d 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationReceiver.h
+++ b/third_party/WebKit/Source/modules/presentation/PresentationReceiver.h
@@ -23,7 +23,9 @@ class PresentationConnectionList;
class WebPresentationClient;
// Implements the PresentationReceiver interface from the Presentation API from
-// which websites can implement the receiving side of a presentation.
+// which websites can implement the receiving side of a presentation. This needs
+// to be eagerly created in order to have the receiver associated with the
+// client.
class MODULES_EXPORT PresentationReceiver final
: public GarbageCollectedFinalized<PresentationReceiver>,
public ScriptWrappable,
@@ -37,9 +39,11 @@ class MODULES_EXPORT PresentationReceiver final
Member<DOMException>>;
public:
- explicit PresentationReceiver(LocalFrame*, WebPresentationClient*);
+ PresentationReceiver(LocalFrame*, WebPresentationClient*);
~PresentationReceiver() = default;
+ static PresentationReceiver* From(Document&);
+
// PresentationReceiver.idl implementation
ScriptPromise connectionList(ScriptState*);

Powered by Google App Engine
This is Rietveld 408576698