Index: Source/modules/presentation/Presentation.h |
diff --git a/Source/modules/presentation/Presentation.h b/Source/modules/presentation/Presentation.h |
index be2cdae35e86df34e2d8c50bf7aa4be53934a949..a4edb9164f8ad3cc1f9fb693954df0344ebddcde 100644 |
--- a/Source/modules/presentation/Presentation.h |
+++ b/Source/modules/presentation/Presentation.h |
@@ -5,8 +5,11 @@ |
#ifndef Presentation_h |
#define Presentation_h |
+#include "bindings/core/v8/ScriptPromise.h" |
+#include "bindings/core/v8/ScriptState.h" |
Peter Beverloo
2014/10/29 20:51:19
You can forward declare this.
whywhat
2014/10/29 22:09:26
Done.
|
#include "core/dom/ContextLifecycleObserver.h" |
#include "core/events/EventTarget.h" |
+#include "modules/presentation/PresentationSession.h" |
namespace blink { |
@@ -27,10 +30,17 @@ public: |
virtual void trace(Visitor*) override; |
+ PresentationSession* session() const; |
+ |
+ ScriptPromise startSession(ScriptState*, const String& senderId, const String& presentationId); |
+ ScriptPromise joinSession(ScriptState*, const String& senderId, const String& presentationId); |
+ |
DEFINE_ATTRIBUTE_EVENT_LISTENER(availablechange); |
private: |
explicit Presentation(ExecutionContext*); |
+ |
+ PersistentWillBeMember<PresentationSession> m_session; |
Peter Beverloo
2014/10/29 20:51:19
This should be a Member<>.
whywhat
2014/10/29 22:09:27
Done.
|
}; |
} // namespace blink |