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

Unified Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 278353003: Make RendererMediaPlayerManager a RenderFrameObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor fix. Created 6 years, 7 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: content/browser/renderer_host/render_view_host_impl.h
diff --git a/content/browser/renderer_host/render_view_host_impl.h b/content/browser/renderer_host/render_view_host_impl.h
index 88d211bed2337fbba4bdb1a0b1d0e35bbd33fe25..4969c32d6f46c1aa58110907e5a61ca5996ffbec 100644
--- a/content/browser/renderer_host/render_view_host_impl.h
+++ b/content/browser/renderer_host/render_view_host_impl.h
@@ -53,7 +53,7 @@ struct SelectedFileInfo;
namespace content {
-class BrowserMediaPlayerManager;
+class MediaWebContentsObserver;
class ChildProcessSecurityPolicyImpl;
class PageState;
class RenderWidgetHostDelegate;
@@ -392,8 +392,8 @@ class CONTENT_EXPORT RenderViewHostImpl
#endif
#if defined(OS_ANDROID)
- BrowserMediaPlayerManager* media_player_manager() {
- return media_player_manager_.get();
+ MediaWebContentsObserver* media_web_contents_observer() {
+ return media_web_contents_observer_.get();
}
void DidSelectPopupMenuItems(const std::vector<int>& selected_indices);
@@ -625,8 +625,9 @@ class CONTENT_EXPORT RenderViewHostImpl
bool virtual_keyboard_requested_;
#if defined(OS_ANDROID)
- // Manages all the android mediaplayer objects and handling IPCs for video.
- scoped_ptr<BrowserMediaPlayerManager> media_player_manager_;
+ // Manages all the android mediaplayer managers and forwards IPCs to the
+ // managers.
+ scoped_ptr<MediaWebContentsObserver> media_web_contents_observer_;
#endif
// Used to swap out or shutdown this RVH when the unload event is taking too

Powered by Google App Engine
This is Rietveld 408576698