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

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

Issue 23545029: EME: Handle NO_KEY and resume playback after key is added. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase only 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 24 matching lines...) Expand all
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
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
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
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 */)
OLDNEW
« no previous file with comments | « content/common/gpu/media/android_video_decode_accelerator.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