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 24 matching lines...) Expand all Loading... |
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 #if defined(GOOGLE_TV) |
45 IPC_STRUCT_TRAITS_MEMBER(key_system) | 46 IPC_STRUCT_TRAITS_MEMBER(key_system) |
| 47 #endif // defined(GOOGLE_TV) |
46 IPC_STRUCT_TRAITS_END() | 48 IPC_STRUCT_TRAITS_END() |
47 | 49 |
48 IPC_STRUCT_TRAITS_BEGIN(media::DemuxerData) | 50 IPC_STRUCT_TRAITS_BEGIN(media::DemuxerData) |
49 IPC_STRUCT_TRAITS_MEMBER(type) | 51 IPC_STRUCT_TRAITS_MEMBER(type) |
50 IPC_STRUCT_TRAITS_MEMBER(access_units) | 52 IPC_STRUCT_TRAITS_MEMBER(access_units) |
51 IPC_STRUCT_TRAITS_END() | 53 IPC_STRUCT_TRAITS_END() |
52 | 54 |
53 IPC_STRUCT_TRAITS_BEGIN(media::AccessUnit) | 55 IPC_STRUCT_TRAITS_BEGIN(media::AccessUnit) |
54 IPC_STRUCT_TRAITS_MEMBER(status) | 56 IPC_STRUCT_TRAITS_MEMBER(status) |
55 IPC_STRUCT_TRAITS_MEMBER(end_of_stream) | 57 IPC_STRUCT_TRAITS_MEMBER(end_of_stream) |
(...skipping 11 matching lines...) Expand all Loading... |
67 | 69 |
68 IPC_ENUM_TRAITS(media::MediaPlayerAndroid::SourceType) | 70 IPC_ENUM_TRAITS(media::MediaPlayerAndroid::SourceType) |
69 | 71 |
70 // Messages for notifying the render process of media playback status ------- | 72 // Messages for notifying the render process of media playback status ------- |
71 | 73 |
72 // Media buffering has updated. | 74 // Media buffering has updated. |
73 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_MediaBufferingUpdate, | 75 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_MediaBufferingUpdate, |
74 int /* player_id */, | 76 int /* player_id */, |
75 int /* percent */) | 77 int /* percent */) |
76 | 78 |
77 // A media playback error has occured. | 79 // A media playback error has occurred. |
78 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_MediaError, | 80 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_MediaError, |
79 int /* player_id */, | 81 int /* player_id */, |
80 int /* error */) | 82 int /* error */) |
81 | 83 |
82 // Playback is completed. | 84 // Playback is completed. |
83 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_MediaPlaybackCompleted, | 85 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_MediaPlaybackCompleted, |
84 int /* player_id */) | 86 int /* player_id */) |
85 | 87 |
86 // Media metadata has changed. | 88 // Media metadata has changed. |
87 IPC_MESSAGE_ROUTED5(MediaPlayerMsg_MediaMetadataChanged, | 89 IPC_MESSAGE_ROUTED5(MediaPlayerMsg_MediaMetadataChanged, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 137 |
136 // The media source player reads data from demuxer | 138 // The media source player reads data from demuxer |
137 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_ReadFromDemuxer, | 139 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_ReadFromDemuxer, |
138 int /* player_id */, | 140 int /* player_id */, |
139 media::DemuxerStream::Type /* type */) | 141 media::DemuxerStream::Type /* type */) |
140 | 142 |
141 // The player needs new config data | 143 // The player needs new config data |
142 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_MediaConfigRequest, | 144 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_MediaConfigRequest, |
143 int /* player_id */) | 145 int /* player_id */) |
144 | 146 |
145 // Messages for controllering the media playback in browser process ---------- | 147 // Messages for controlling the media playback in browser process ---------- |
146 | 148 |
147 // Destroy the media player object. | 149 // Destroy the media player object. |
148 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer, | 150 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer, |
149 int /* player_id */) | 151 int /* player_id */) |
150 | 152 |
151 // Destroy all the players. | 153 // Destroy all the players. |
152 IPC_MESSAGE_ROUTED0(MediaPlayerHostMsg_DestroyAllMediaPlayers) | 154 IPC_MESSAGE_ROUTED0(MediaPlayerHostMsg_DestroyAllMediaPlayers) |
153 | 155 |
154 // Initialize a media player object with the given player_id. | 156 // Initialize a media player object with the given player_id. |
155 IPC_MESSAGE_ROUTED4( | 157 IPC_MESSAGE_ROUTED4( |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 int /* media_keys_id */, | 245 int /* media_keys_id */, |
244 std::string /* session_id */, | 246 std::string /* session_id */, |
245 media::MediaKeys::KeyError /* error_code */, | 247 media::MediaKeys::KeyError /* error_code */, |
246 int /* system_code */) | 248 int /* system_code */) |
247 | 249 |
248 IPC_MESSAGE_ROUTED4(MediaKeysMsg_KeyMessage, | 250 IPC_MESSAGE_ROUTED4(MediaKeysMsg_KeyMessage, |
249 int /* media_keys_id */, | 251 int /* media_keys_id */, |
250 std::string /* session_id */, | 252 std::string /* session_id */, |
251 std::vector<uint8> /* message */, | 253 std::vector<uint8> /* message */, |
252 std::string /* destination_url */) | 254 std::string /* destination_url */) |
OLD | NEW |