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

Unified Diff: Source/modules/presentation/Presentation.h

Issue 940503002: [PresentationAPI] Added plumbing for start/joinSession from JS to platform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Full change Created 5 years, 10 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
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/presentation/Presentation.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/presentation/Presentation.h
diff --git a/Source/modules/presentation/Presentation.h b/Source/modules/presentation/Presentation.h
index 17603c168c2b5e6c1364e3ebfcf841591ee7eac1..b324a562654628f786f10582bbd7715684de7fe2 100644
--- a/Source/modules/presentation/Presentation.h
+++ b/Source/modules/presentation/Presentation.h
@@ -10,6 +10,7 @@
#include "core/frame/DOMWindowProperty.h"
#include "modules/presentation/PresentationSession.h"
#include "platform/heap/Handle.h"
+#include "platform/heap/Heap.h"
namespace WTF {
class String;
@@ -56,6 +57,9 @@ public:
void didChangeAvailability(bool available);
// Queried by the controller if |availablechange| event has any listeners.
bool isAvailableChangeWatched() const;
+ // Adds a session to the open sessions list.
+ void registerSession(PresentationSession*);
+
private:
explicit Presentation(LocalFrame*);
@@ -63,7 +67,11 @@ private:
// Can return |nullptr| if the frame is detached from the document.
PresentationController* presentationController();
+ // The session object provided to the presentation page. Not supported.
Member<PresentationSession> m_session;
+
+ // The sessions opened for this frame.
+ HeapHashSet<Member<PresentationSession>> m_openSessions;
};
} // namespace blink
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/presentation/Presentation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698