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

Unified Diff: content/common/view_messages.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 and resolving merge conflicts 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
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index a6647c12a00a791e104472d4aa7bf1000e083001..ec561c1cabc147b490f91abcbaa427114ffefd83 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -2371,4 +2371,77 @@ IPC_MESSAGE_ROUTED3(ViewHostMsg_FindMatchRects_Reply,
int /* version */,
std::vector<gfx::RectF> /* rects */,
gfx::RectF /* active_rect */)
+
+// Messages for notifying the render process of media playback status -------
+
+// Media buffering has updated.
+IPC_MESSAGE_ROUTED2(ViewMsg_MediaBufferingUpdate,
+ int /* player_id */,
+ int /* percent */)
+
+// A media playback error has occured.
+IPC_MESSAGE_ROUTED2(ViewMsg_MediaError,
+ int /* player_id */,
+ int /* error */)
+
+// Playback is completed.
+IPC_MESSAGE_ROUTED1(ViewMsg_MediaPlaybackCompleted,
+ int /* player_id */)
+
+// Player is prepared.
+IPC_MESSAGE_ROUTED2(ViewMsg_MediaPrepared,
+ int /* player_id */,
+ base::TimeDelta /* duration */)
+
+// Media seek is completed.
+IPC_MESSAGE_ROUTED2(ViewMsg_MediaSeekCompleted,
+ int /* player_id */,
+ base::TimeDelta /* current_time */)
+
+// Video size has changed.
+IPC_MESSAGE_ROUTED3(ViewMsg_MediaVideoSizeChanged,
+ int /* player_id */,
+ int /* width */,
+ int /* height */)
+
+// The current play time has updated.
+IPC_MESSAGE_ROUTED2(ViewMsg_MediaTimeUpdate,
+ int /* player_id */,
+ base::TimeDelta /* current_time */)
+
+// The player has been released.
+IPC_MESSAGE_ROUTED1(ViewMsg_MediaPlayerReleased,
+ int /* player_id */)
+
+// Messages for controllering the media playback in browser process ----------
+
+// Destroy the media player object.
+IPC_MESSAGE_ROUTED1(ViewHostMsg_DestroyMediaPlayer,
+ int /* player_id */)
+
+// Destroy all the players.
+IPC_MESSAGE_ROUTED0(ViewHostMsg_DestroyAllMediaPlayers)
+
+// Initialize a media player object with the given player_id.
+IPC_MESSAGE_ROUTED3(ViewHostMsg_MediaPlayerInitialize,
+ int /* player_id */,
+ std::string /* url */,
+ std::string /* first_party_for_cookies */)
+
+// Pause the player.
+IPC_MESSAGE_ROUTED1(ViewHostMsg_MediaPlayerPause,
+ int /* player_id */)
+
+// Release player resources, but keep the object for future usage.
+IPC_MESSAGE_ROUTED1(ViewHostMsg_MediaPlayerRelease,
+ int /* player_id */)
+
+// Perform a seek.
+IPC_MESSAGE_ROUTED2(ViewHostMsg_MediaPlayerSeek,
+ int /* player_id */,
+ base::TimeDelta /* time */)
+
+// Start the player for playback.
+IPC_MESSAGE_ROUTED1(ViewHostMsg_MediaPlayerStart,
+ int /* player_id */)
#endif
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698