| 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 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #define IPC_MESSAGE_START MediaPlayerMsgStart | 22 #define IPC_MESSAGE_START MediaPlayerMsgStart |
| 23 | 23 |
| 24 #include "media/base/android/demuxer_stream_player_params.h" | 24 #include "media/base/android/demuxer_stream_player_params.h" |
| 25 | 25 |
| 26 IPC_ENUM_TRAITS(media::AudioCodec) | 26 IPC_ENUM_TRAITS(media::AudioCodec) |
| 27 IPC_ENUM_TRAITS(media::DemuxerStream::Status) | 27 IPC_ENUM_TRAITS(media::DemuxerStream::Status) |
| 28 IPC_ENUM_TRAITS(media::DemuxerStream::Type) | 28 IPC_ENUM_TRAITS(media::DemuxerStream::Type) |
| 29 IPC_ENUM_TRAITS(media::MediaKeys::KeyError) | 29 IPC_ENUM_TRAITS(media::MediaKeys::KeyError) |
| 30 IPC_ENUM_TRAITS(media::VideoCodec) | 30 IPC_ENUM_TRAITS(media::VideoCodec) |
| 31 | 31 |
| 32 IPC_STRUCT_TRAITS_BEGIN(media::MediaPlayerHostMsg_DemuxerReady_Params) | 32 IPC_STRUCT_TRAITS_BEGIN(media::MediaConfigs) |
| 33 IPC_STRUCT_TRAITS_MEMBER(audio_codec) | 33 IPC_STRUCT_TRAITS_MEMBER(audio_codec) |
| 34 IPC_STRUCT_TRAITS_MEMBER(audio_channels) | 34 IPC_STRUCT_TRAITS_MEMBER(audio_channels) |
| 35 IPC_STRUCT_TRAITS_MEMBER(audio_sampling_rate) | 35 IPC_STRUCT_TRAITS_MEMBER(audio_sampling_rate) |
| 36 IPC_STRUCT_TRAITS_MEMBER(is_audio_encrypted) | 36 IPC_STRUCT_TRAITS_MEMBER(is_audio_encrypted) |
| 37 IPC_STRUCT_TRAITS_MEMBER(audio_extra_data) | 37 IPC_STRUCT_TRAITS_MEMBER(audio_extra_data) |
| 38 | 38 |
| 39 IPC_STRUCT_TRAITS_MEMBER(video_codec) | 39 IPC_STRUCT_TRAITS_MEMBER(video_codec) |
| 40 IPC_STRUCT_TRAITS_MEMBER(video_size) | 40 IPC_STRUCT_TRAITS_MEMBER(video_size) |
| 41 IPC_STRUCT_TRAITS_MEMBER(is_video_encrypted) | 41 IPC_STRUCT_TRAITS_MEMBER(is_video_encrypted) |
| 42 IPC_STRUCT_TRAITS_MEMBER(video_extra_data) | 42 IPC_STRUCT_TRAITS_MEMBER(video_extra_data) |
| 43 | 43 |
| 44 IPC_STRUCT_TRAITS_MEMBER(duration_ms) | 44 IPC_STRUCT_TRAITS_MEMBER(duration_ms) |
| 45 IPC_STRUCT_TRAITS_MEMBER(key_system) | 45 IPC_STRUCT_TRAITS_MEMBER(key_system) |
| 46 IPC_STRUCT_TRAITS_END() | 46 IPC_STRUCT_TRAITS_END() |
| 47 | 47 |
| 48 IPC_STRUCT_TRAITS_BEGIN(media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params) | 48 IPC_STRUCT_TRAITS_BEGIN(media::MediaData) |
| 49 IPC_STRUCT_TRAITS_MEMBER(type) | 49 IPC_STRUCT_TRAITS_MEMBER(type) |
| 50 IPC_STRUCT_TRAITS_MEMBER(access_units) | 50 IPC_STRUCT_TRAITS_MEMBER(access_units) |
| 51 IPC_STRUCT_TRAITS_END() | 51 IPC_STRUCT_TRAITS_END() |
| 52 | 52 |
| 53 IPC_STRUCT_TRAITS_BEGIN(media::AccessUnit) | 53 IPC_STRUCT_TRAITS_BEGIN(media::AccessUnit) |
| 54 IPC_STRUCT_TRAITS_MEMBER(status) | 54 IPC_STRUCT_TRAITS_MEMBER(status) |
| 55 IPC_STRUCT_TRAITS_MEMBER(end_of_stream) | 55 IPC_STRUCT_TRAITS_MEMBER(end_of_stream) |
| 56 IPC_STRUCT_TRAITS_MEMBER(data) | 56 IPC_STRUCT_TRAITS_MEMBER(data) |
| 57 IPC_STRUCT_TRAITS_MEMBER(timestamp) | 57 IPC_STRUCT_TRAITS_MEMBER(timestamp) |
| 58 IPC_STRUCT_TRAITS_MEMBER(key_id) | 58 IPC_STRUCT_TRAITS_MEMBER(key_id) |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_ExitFullscreen, int /* player_id */) | 185 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_ExitFullscreen, int /* player_id */) |
| 186 | 186 |
| 187 // Sent when the seek request is received by the WebMediaPlayerAndroid. | 187 // Sent when the seek request is received by the WebMediaPlayerAndroid. |
| 188 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_MediaSeekRequestAck, | 188 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_MediaSeekRequestAck, |
| 189 int /* player_id */, | 189 int /* player_id */, |
| 190 uint32 /* seek_request_id */) | 190 uint32 /* seek_request_id */) |
| 191 | 191 |
| 192 // Inform the media source player that the demuxer is ready. | 192 // Inform the media source player that the demuxer is ready. |
| 193 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_DemuxerReady, | 193 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_DemuxerReady, |
| 194 int /* player_id */, | 194 int /* player_id */, |
| 195 media::MediaPlayerHostMsg_DemuxerReady_Params) | 195 media::MediaConfigs) |
| 196 | 196 |
| 197 // Sent when the data was read from the ChunkDemuxer. | 197 // Sent when the data was read from the ChunkDemuxer. |
| 198 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_ReadFromDemuxerAck, | 198 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_ReadFromDemuxerAck, |
| 199 int /* player_id */, | 199 int /* player_id */, |
| 200 media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params) | 200 media::MediaData) |
| 201 | 201 |
| 202 // Inform the media source player of changed media duration from demuxer. | 202 // Inform the media source player of changed media duration from demuxer. |
| 203 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_DurationChanged, | 203 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_DurationChanged, |
| 204 int /* player_id */, | 204 int /* player_id */, |
| 205 base::TimeDelta /* duration */) | 205 base::TimeDelta /* duration */) |
| 206 | 206 |
| 207 #if defined(GOOGLE_TV) | 207 #if defined(GOOGLE_TV) |
| 208 // Notify the player about the external surface, requesting it if necessary. | 208 // Notify the player about the external surface, requesting it if necessary. |
| 209 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface, | 209 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_NotifyExternalSurface, |
| 210 int /* player_id */, | 210 int /* player_id */, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 int /* media_keys_id */, | 243 int /* media_keys_id */, |
| 244 std::string /* session_id */, | 244 std::string /* session_id */, |
| 245 media::MediaKeys::KeyError /* error_code */, | 245 media::MediaKeys::KeyError /* error_code */, |
| 246 int /* system_code */) | 246 int /* system_code */) |
| 247 | 247 |
| 248 IPC_MESSAGE_ROUTED4(MediaKeysMsg_KeyMessage, | 248 IPC_MESSAGE_ROUTED4(MediaKeysMsg_KeyMessage, |
| 249 int /* media_keys_id */, | 249 int /* media_keys_id */, |
| 250 std::string /* session_id */, | 250 std::string /* session_id */, |
| 251 std::vector<uint8> /* message */, | 251 std::vector<uint8> /* message */, |
| 252 std::string /* destination_url */) | 252 std::string /* destination_url */) |
| OLD | NEW |