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

Unified Diff: content/renderer/render_frame_impl.h

Issue 1436243002: Add render-side manager for MediaSession (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile fix Created 5 years, 1 month 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: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index bd386d4bcae542ffbe090621683a606c1b699a19..c2889776b51e381a6987243a9742e7e6a8bdaf64 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -118,6 +118,7 @@ class PushMessagingDispatcher;
class RendererAccessibility;
class RendererCdmManager;
class RendererMediaPlayerManager;
+class RendererMediaSessionManager;
class RendererPpapiHost;
class RenderFrameObserver;
class RenderViewImpl;
@@ -881,6 +882,8 @@ class CONTENT_EXPORT RenderFrameImpl
const media::WebMediaPlayerParams& params);
RendererMediaPlayerManager* GetMediaPlayerManager();
+
+ RendererMediaSessionManager* GetMediaSessionManager();
#endif
bool AreSecureCodecsSupported();
@@ -1018,10 +1021,12 @@ class CONTENT_EXPORT RenderFrameImpl
MidiDispatcher* midi_dispatcher_;
#if defined(OS_ANDROID)
- // Manages all media players in this render frame for communicating with the
- // real media player in the browser process. It's okay to use a raw pointer
- // since it's a RenderFrameObserver.
+ // Manages all media players and sessions in this render frame for
+ // communicating with the real media player and sessions in the
+ // browser process. It's okay to use raw pointers since they're both
+ // RenderFrameObservers.
RendererMediaPlayerManager* media_player_manager_;
+ RendererMediaSessionManager* media_session_manager_;
#endif
#if defined(ENABLE_BROWSER_CDMS)

Powered by Google App Engine
This is Rietveld 408576698