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

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

Issue 10919075: Move android mediaplayer from render process to browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressing comments Created 8 years, 3 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 940ba020bf39ae745fac7520c62af023fa3a9167..54e065eed9c84f022161324c7351409bf7b3db71 100644
--- a/content/browser/renderer_host/render_view_host_impl.h
+++ b/content/browser/renderer_host/render_view_host_impl.h
@@ -50,6 +50,9 @@ struct SelectedFileInfo;
namespace content {
+#if defined(OS_ANDROID)
+class MediaPlayerManagerAndroid;
+#endif
class PowerSaveBlocker;
class RenderViewHostObserver;
class RenderWidgetHostDelegate;
@@ -386,6 +389,10 @@ class CONTENT_EXPORT RenderViewHostImpl
#endif
#if defined(OS_ANDROID)
+ MediaPlayerManagerAndroid* media_player_manager() {
+ return media_player_manager_;
+ }
+
void DidSelectPopupMenuItems(const std::vector<int>& selected_indices);
void DidCancelPopupMenu();
#endif
@@ -663,6 +670,13 @@ class CONTENT_EXPORT RenderViewHostImpl
// When the last ShouldClose message was sent.
base::TimeTicks send_should_close_start_time_;
+#if defined(OS_ANDROID)
+ // Manages all the android mediaplayer objects and handling IPCs for video.
+ // This class inherits from RenderViewHostObserver, it will get deleted when
+ // RenderViewHost is gone.
+ MediaPlayerManagerAndroid* media_player_manager_;
+#endif
+
DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
};

Powered by Google App Engine
This is Rietveld 408576698