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

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

Issue 16098014: Handle config changes for MSE on android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and address comment Created 7 years, 6 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 9
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 int /* player_id */) 123 int /* player_id */)
124 124
125 // The player was paused. 125 // The player was paused.
126 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DidMediaPlayerPause, 126 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DidMediaPlayerPause,
127 int /* player_id */) 127 int /* player_id */)
128 128
129 // Media seek is requested. 129 // Media seek is requested.
130 IPC_MESSAGE_ROUTED3(MediaPlayerMsg_MediaSeekRequest, 130 IPC_MESSAGE_ROUTED3(MediaPlayerMsg_MediaSeekRequest,
131 int /* player_id */, 131 int /* player_id */,
132 base::TimeDelta /* time_to_seek */, 132 base::TimeDelta /* time_to_seek */,
133 bool /* request_texture_peer */) 133 unsigned /* seek_request_id */)
DaleCurtis 2013/06/06 01:23:12 drive by: you should use explicitly sized types fo
qinmin 2013/06/06 01:32:09 Done.
134 134
135 // The media source player reads data from demuxer 135 // The media source player reads data from demuxer
136 IPC_MESSAGE_ROUTED3(MediaPlayerMsg_ReadFromDemuxer, 136 IPC_MESSAGE_ROUTED3(MediaPlayerMsg_ReadFromDemuxer,
137 int /* player_id */, 137 int /* player_id */,
138 media::DemuxerStream::Type /* type */, 138 media::DemuxerStream::Type /* type */,
139 bool /* seek_done */) 139 bool /* seek_done */)
140 140
141 // The player needs new config data
142 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_MediaConfigRequest,
143 int /* player_id */)
144
141 // Messages for controllering the media playback in browser process ---------- 145 // Messages for controllering the media playback in browser process ----------
142 146
143 // Destroy the media player object. 147 // Destroy the media player object.
144 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer, 148 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer,
145 int /* player_id */) 149 int /* player_id */)
146 150
147 // Destroy all the players. 151 // Destroy all the players.
148 IPC_MESSAGE_ROUTED0(MediaPlayerHostMsg_DestroyAllMediaPlayers) 152 IPC_MESSAGE_ROUTED0(MediaPlayerHostMsg_DestroyAllMediaPlayers)
149 153
150 // Initialize a media player object with the given player_id. 154 // Initialize a media player object with the given player_id.
(...skipping 23 matching lines...) Expand all
174 178
175 // Request the player to enter fullscreen. 179 // Request the player to enter fullscreen.
176 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_EnterFullscreen, 180 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_EnterFullscreen,
177 int /* player_id */) 181 int /* player_id */)
178 182
179 // Request the player to exit fullscreen. 183 // Request the player to exit fullscreen.
180 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_ExitFullscreen, 184 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_ExitFullscreen,
181 int /* player_id */) 185 int /* player_id */)
182 186
183 // Sent when the seek request is received by the WebMediaPlayerAndroid. 187 // Sent when the seek request is received by the WebMediaPlayerAndroid.
184 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaSeekRequestAck, 188 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_MediaSeekRequestAck,
185 int /* player_id */) 189 int /* player_id */,
190 unsigned /* seek_request_id */)
186 191
187 // Inform the media source player that the demuxer is ready. 192 // Inform the media source player that the demuxer is ready.
188 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_DemuxerReady, 193 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_DemuxerReady,
189 int /* player_id */, 194 int /* player_id */,
190 media::MediaPlayerHostMsg_DemuxerReady_Params) 195 media::MediaPlayerHostMsg_DemuxerReady_Params)
191 196
192 // Sent when the data was read from the ChunkDemuxer. 197 // Sent when the data was read from the ChunkDemuxer.
193 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_ReadFromDemuxerAck, 198 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_ReadFromDemuxerAck,
194 int /* player_id */, 199 int /* player_id */,
195 media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params) 200 media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params)
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 int /* system_code */) 241 int /* system_code */)
237 242
238 IPC_MESSAGE_ROUTED5(MediaPlayerMsg_KeyMessage, 243 IPC_MESSAGE_ROUTED5(MediaPlayerMsg_KeyMessage,
239 int /* player_id */, 244 int /* player_id */,
240 std::string /* key_system */, 245 std::string /* key_system */,
241 std::string /* session_id */, 246 std::string /* session_id */,
242 std::string /* message */, 247 std::string /* message */,
243 std::string /* destination_url */) 248 std::string /* destination_url */)
244 249
245 // NeedKey is fired and handled in the renderer. Hence no message is needed. 250 // NeedKey is fired and handled in the renderer. Hence no message is needed.
OLDNEW
« no previous file with comments | « content/browser/android/media_player_manager_impl.cc ('k') | content/renderer/media/webmediaplayer_proxy_impl_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698