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

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: resolve code review comments from Mark 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 a65e29cd562aaecf2125f64d35def0d0913c9876..45fb364f8e92cbf36ffaa5890308cf057f4169e3 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationReceiver.h
+++ b/third_party/WebKit/Source/modules/presentation/PresentationReceiver.h
@@ -37,9 +37,13 @@ class MODULES_EXPORT PresentationReceiver final
Member<DOMException>>;
public:
- explicit PresentationReceiver(LocalFrame*, WebPresentationClient*);
+ PresentationReceiver(LocalFrame*, WebPresentationClient*);
~PresentationReceiver() = default;
+ // This need to be eagerly created in order to have the receiver associated
imcheng 2017/04/11 02:00:27 nit: Feels like this should be a class-level comme
zhaobin 2017/04/11 02:57:51 Done.
+ // with the client.
+ MODULES_EXPORT static PresentationReceiver* from(Document&);
+
// PresentationReceiver.idl implementation
ScriptPromise connectionList(ScriptState*);

Powered by Google App Engine
This is Rietveld 408576698