Index: Source/modules/presentation/PresentationSession.h |
diff --git a/Source/modules/presentation/PresentationSession.h b/Source/modules/presentation/PresentationSession.h |
index d2116156c7213333d20044e7b1984041b2069b4c..9a28e6cf617ee0d6c7689bf308f0fd49abd7c434 100644 |
--- a/Source/modules/presentation/PresentationSession.h |
+++ b/Source/modules/presentation/PresentationSession.h |
@@ -5,21 +5,26 @@ |
#ifndef PresentationSession_h |
#define PresentationSession_h |
-#include "core/dom/ContextLifecycleObserver.h" |
#include "core/events/EventTarget.h" |
+#include "core/frame/DOMWindowProperty.h" |
#include "wtf/text/AtomicString.h" |
#include "wtf/text/WTFString.h" |
namespace blink { |
+class Presentation; |
+class WebPresentationSessionClient; |
+class WebString; |
+ |
class PresentationSession final |
: public RefCountedGarbageCollectedEventTargetWithInlineData<PresentationSession> |
- , public ContextLifecycleObserver { |
+ , public DOMWindowProperty { |
DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<PresentationSession>); |
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PresentationSession); |
DEFINE_WRAPPERTYPEINFO(); |
public: |
- static PresentationSession* create(ExecutionContext*); |
+ static PresentationSession* take(WebPresentationSessionClient*, Presentation*); |
+ static void dispose(WebPresentationSessionClient*); |
virtual ~PresentationSession(); |
// EventTarget implementation. |
@@ -38,7 +43,7 @@ public: |
DEFINE_ATTRIBUTE_EVENT_LISTENER(statechange); |
private: |
- explicit PresentationSession(ExecutionContext*); |
+ PresentationSession(LocalFrame*, const WebString& id); |
String m_id; |
AtomicString m_state; |