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

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..e4e1e1481fdbe5ae5a3775197d2a0bfff50c56e0 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,11 @@ 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.
+ MediaPlayerManagerAndroid* media_player_manager_;
scherkus (not reviewing) 2012/09/07 13:17:35 who owns this object? do we leak it?
qinmin 2012/09/07 22:48:27 This object is inherited from RenderViewHostObserv
+#endif
+
DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
};

Powered by Google App Engine
This is Rietveld 408576698