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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_SetPoster, | 243 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_SetPoster, |
244 int /* player_id */, | 244 int /* player_id */, |
245 GURL /* poster url */) | 245 GURL /* poster url */) |
246 | 246 |
247 // Requests the player to enter fullscreen. | 247 // Requests the player to enter fullscreen. |
248 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_EnterFullscreen, int /* player_id */) | 248 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_EnterFullscreen, int /* player_id */) |
249 | 249 |
250 // Requests the player to exit fullscreen. | 250 // Requests the player to exit fullscreen. |
251 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_ExitFullscreen, int /* player_id */) | 251 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_ExitFullscreen, int /* player_id */) |
252 | 252 |
| 253 // Requests the player with |player_id| to use the CDM with |cdm_id|. |
| 254 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_SetCdm, |
| 255 int /* player_id */, |
| 256 int /* cdm_id */); |
| 257 |
253 // Sent after the renderer demuxer has seeked. | 258 // Sent after the renderer demuxer has seeked. |
254 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_DemuxerSeekDone, | 259 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_DemuxerSeekDone, |
255 int /* demuxer_client_id */, | 260 int /* demuxer_client_id */, |
256 base::TimeDelta /* actual_browser_seek_time */) | 261 base::TimeDelta /* actual_browser_seek_time */) |
257 | 262 |
258 // Inform the media source player that the demuxer is ready. | 263 // Inform the media source player that the demuxer is ready. |
259 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_DemuxerReady, | 264 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_DemuxerReady, |
260 int /* demuxer_client_id */, | 265 int /* demuxer_client_id */, |
261 media::DemuxerConfigs) | 266 media::DemuxerConfigs) |
262 | 267 |
263 // Sent when the data was read from the ChunkDemuxer. | 268 // Sent when the data was read from the ChunkDemuxer. |
264 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_ReadFromDemuxerAck, | 269 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_ReadFromDemuxerAck, |
265 int /* demuxer_client_id */, | 270 int /* demuxer_client_id */, |
266 media::DemuxerData) | 271 media::DemuxerData) |
267 | 272 |
268 // Inform the media source player of changed media duration from demuxer. | 273 // Inform the media source player of changed media duration from demuxer. |
269 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_DurationChanged, | 274 IPC_MESSAGE_CONTROL2(MediaPlayerHostMsg_DurationChanged, |
270 int /* demuxer_client_id */, | 275 int /* demuxer_client_id */, |
271 base::TimeDelta /* duration */) | 276 base::TimeDelta /* duration */) |
272 | 277 |
273 #if defined(VIDEO_HOLE) | 278 #if defined(VIDEO_HOLE) |
274 // Notify the player about the external surface, requesting it if necessary. | 279 // Notify the player about the external surface, requesting it if necessary. |
275 // |is_request| true if the player is requesting the external surface. | 280 // |is_request| true if the player is requesting the external surface. |
276 // |rect| the boundary rectangle of the video element. | 281 // |rect| the boundary rectangle of the video element. |
277 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface, | 282 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface, |
278 int /* player_id */, | 283 int /* player_id */, |
279 bool /* is_request */, | 284 bool /* is_request */, |
280 gfx::RectF /* rect */) | 285 gfx::RectF /* rect */) |
281 #endif // defined(VIDEO_HOLE) | 286 #endif // defined(VIDEO_HOLE) |
OLD | NEW |