| 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
|
|
|