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

Unified Diff: content/browser/media/media_web_contents_observer.h

Issue 1441883003: Hook up RendererMediaSessionManager with browser side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years 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/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.
« no previous file with comments | « content/browser/media/android/browser_media_session_manager.cc ('k') | content/browser/media/media_web_contents_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698