| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // IPC messages for android media player. | 5 // IPC messages for android media player. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 int /* player_id */) | 123 int /* player_id */) |
| 124 | 124 |
| 125 // The player was paused. | 125 // The player was paused. |
| 126 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DidMediaPlayerPause, | 126 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DidMediaPlayerPause, |
| 127 int /* player_id */) | 127 int /* player_id */) |
| 128 | 128 |
| 129 // Media seek is requested. | 129 // Media seek is requested. |
| 130 IPC_MESSAGE_ROUTED3(MediaPlayerMsg_MediaSeekRequest, | 130 IPC_MESSAGE_ROUTED3(MediaPlayerMsg_MediaSeekRequest, |
| 131 int /* player_id */, | 131 int /* player_id */, |
| 132 base::TimeDelta /* time_to_seek */, | 132 base::TimeDelta /* time_to_seek */, |
| 133 bool /* request_texture_peer */) | 133 uint32 /* seek_request_id */) |
| 134 | 134 |
| 135 // The media source player reads data from demuxer | 135 // The media source player reads data from demuxer |
| 136 IPC_MESSAGE_ROUTED3(MediaPlayerMsg_ReadFromDemuxer, | 136 IPC_MESSAGE_ROUTED3(MediaPlayerMsg_ReadFromDemuxer, |
| 137 int /* player_id */, | 137 int /* player_id */, |
| 138 media::DemuxerStream::Type /* type */, | 138 media::DemuxerStream::Type /* type */, |
| 139 bool /* seek_done */) | 139 bool /* seek_done */) |
| 140 | 140 |
| 141 // The player needs new config data |
| 142 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_MediaConfigRequest, |
| 143 int /* player_id */) |
| 144 |
| 141 // Messages for controllering the media playback in browser process ---------- | 145 // Messages for controllering the media playback in browser process ---------- |
| 142 | 146 |
| 143 // Destroy the media player object. | 147 // Destroy the media player object. |
| 144 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer, | 148 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer, |
| 145 int /* player_id */) | 149 int /* player_id */) |
| 146 | 150 |
| 147 // Destroy all the players. | 151 // Destroy all the players. |
| 148 IPC_MESSAGE_ROUTED0(MediaPlayerHostMsg_DestroyAllMediaPlayers) | 152 IPC_MESSAGE_ROUTED0(MediaPlayerHostMsg_DestroyAllMediaPlayers) |
| 149 | 153 |
| 150 // Initialize a media player object with the given player_id. | 154 // Initialize a media player object with the given player_id. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 174 | 178 |
| 175 // Request the player to enter fullscreen. | 179 // Request the player to enter fullscreen. |
| 176 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_EnterFullscreen, | 180 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_EnterFullscreen, |
| 177 int /* player_id */) | 181 int /* player_id */) |
| 178 | 182 |
| 179 // Request the player to exit fullscreen. | 183 // Request the player to exit fullscreen. |
| 180 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_ExitFullscreen, | 184 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_ExitFullscreen, |
| 181 int /* player_id */) | 185 int /* player_id */) |
| 182 | 186 |
| 183 // Sent when the seek request is received by the WebMediaPlayerAndroid. | 187 // Sent when the seek request is received by the WebMediaPlayerAndroid. |
| 184 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaSeekRequestAck, | 188 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_MediaSeekRequestAck, |
| 185 int /* player_id */) | 189 int /* player_id */, |
| 190 uint32 /* seek_request_id */) |
| 186 | 191 |
| 187 // Inform the media source player that the demuxer is ready. | 192 // Inform the media source player that the demuxer is ready. |
| 188 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_DemuxerReady, | 193 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_DemuxerReady, |
| 189 int /* player_id */, | 194 int /* player_id */, |
| 190 media::MediaPlayerHostMsg_DemuxerReady_Params) | 195 media::MediaPlayerHostMsg_DemuxerReady_Params) |
| 191 | 196 |
| 192 // Sent when the data was read from the ChunkDemuxer. | 197 // Sent when the data was read from the ChunkDemuxer. |
| 193 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_ReadFromDemuxerAck, | 198 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_ReadFromDemuxerAck, |
| 194 int /* player_id */, | 199 int /* player_id */, |
| 195 media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params) | 200 media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params) |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 int /* system_code */) | 241 int /* system_code */) |
| 237 | 242 |
| 238 IPC_MESSAGE_ROUTED5(MediaPlayerMsg_KeyMessage, | 243 IPC_MESSAGE_ROUTED5(MediaPlayerMsg_KeyMessage, |
| 239 int /* player_id */, | 244 int /* player_id */, |
| 240 std::string /* key_system */, | 245 std::string /* key_system */, |
| 241 std::string /* session_id */, | 246 std::string /* session_id */, |
| 242 std::string /* message */, | 247 std::string /* message */, |
| 243 std::string /* destination_url */) | 248 std::string /* destination_url */) |
| 244 | 249 |
| 245 // NeedKey is fired and handled in the renderer. Hence no message is needed. | 250 // NeedKey is fired and handled in the renderer. Hence no message is needed. |
| OLD | NEW |