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

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: Addressed comment 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
Index: Source/modules/presentation/Presentation.h
diff --git a/Source/modules/presentation/Presentation.h b/Source/modules/presentation/Presentation.h
index 17603c168c2b5e6c1364e3ebfcf841591ee7eac1..7b6ad45e901dc521dafbe6d9811937851addc548 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 didCreateSession(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

Powered by Google App Engine
This is Rietveld 408576698