Index: content/browser/media/media_web_contents_observer.h |
diff --git a/content/browser/media/media_web_contents_observer.h b/content/browser/media/media_web_contents_observer.h |
index 0a249130eb5c05a48d616d011752ba8d3a2456e0..4af84a458ee924057a32f0f0328b47488662a44a 100644 |
--- a/content/browser/media/media_web_contents_observer.h |
+++ b/content/browser/media/media_web_contents_observer.h |
@@ -19,6 +19,7 @@ namespace content { |
class BrowserCdmManager; |
class BrowserMediaPlayerManager; |
+class BrowserMediaSessionManager; |
// This class manages all RenderFrame based media related managers at the |
// browser side. It receives IPC messages from media RenderFrameObservers and |
@@ -46,6 +47,9 @@ class CONTENT_EXPORT MediaWebContentsObserver : public WebContentsObserver { |
BrowserMediaPlayerManager* GetMediaPlayerManager( |
RenderFrameHost* render_frame_host); |
+ BrowserMediaSessionManager* GetMediaSessionManager( |
+ RenderFrameHost* render_frame_host); |
+ |
#if defined(VIDEO_HOLE) |
void OnFrameInfoUpdated(); |
#endif // defined(VIDEO_HOLE) |
@@ -113,6 +117,12 @@ class CONTENT_EXPORT MediaWebContentsObserver : public WebContentsObserver { |
base::ScopedPtrHashMap<RenderFrameHost*, |
scoped_ptr<BrowserMediaPlayerManager>>; |
MediaPlayerManagerMap media_player_managers_; |
+ |
+ // Map from RenderFrameHost* to BrowserMediaSessionManager. |
+ using MediaSessionManagerMap = |
+ base::ScopedPtrHashMap<RenderFrameHost*, |
+ scoped_ptr<BrowserMediaSessionManager>>; |
+ MediaSessionManagerMap media_session_managers_; |
#endif // defined(OS_ANDROID) |
// Tracking variables and associated power save blockers for media playback. |