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

Side by Side Diff: content/common/media/media_player_messages_android.h

Issue 23787002: Rename MediaPlayerHostMsg_{DemuxerReady,ReadFromDemuxerAck}_Params to Media{Configs,Data}. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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::DemuxerConfigs)
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::DemuxerData)
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
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::DemuxerConfigs)
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::DemuxerData)
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
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 */)
OLDNEW
« no previous file with comments | « content/browser/android/browser_media_player_manager.cc ('k') | content/renderer/media/android/media_source_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698