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

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

Issue 17289006: Separate CDM initialization from GenerateKeyRequest & remove key_system parameters. (Closed) Base URL: master
Patch Set: rebase only 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
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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 */,
211 bool /* is_request */, 211 bool /* is_request */,
212 gfx::RectF /* rect */) 212 gfx::RectF /* rect */)
213 213
214 #endif 214 #endif
215 215
216 // Messages for encrypted media extensions API ------------------------------ 216 // Messages for encrypted media extensions API ------------------------------
217 217
218 IPC_MESSAGE_ROUTED4(MediaPlayerHostMsg_GenerateKeyRequest, 218 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_GenerateKeyRequest,
219 int /* player_id */, 219 int /* player_id */,
220 std::string /* key_system */,
221 std::string /* type */, 220 std::string /* type */,
222 std::vector<uint8> /* init_data */) 221 std::vector<uint8> /* init_data */)
223 222
224 IPC_MESSAGE_ROUTED5(MediaPlayerHostMsg_AddKey, 223 IPC_MESSAGE_ROUTED4(MediaPlayerHostMsg_AddKey,
225 int /* player_id */, 224 int /* player_id */,
226 std::string /* key_system */,
227 std::vector<uint8> /* key */, 225 std::vector<uint8> /* key */,
228 std::vector<uint8> /* init_data */, 226 std::vector<uint8> /* init_data */,
229 std::string /* session_id */) 227 std::string /* session_id */)
230 228
231 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_CancelKeyRequest, 229 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_CancelKeyRequest,
232 int /* player_id */, 230 int /* player_id */,
233 std::string /* key_system */,
234 std::string /* session_id */) 231 std::string /* session_id */)
235 232
236 IPC_MESSAGE_ROUTED3(MediaPlayerMsg_KeyAdded, 233 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_KeyAdded,
237 int /* player_id */, 234 int /* player_id */,
238 std::string /* key_system */,
239 std::string /* session_id */) 235 std::string /* session_id */)
240 236
241 IPC_MESSAGE_ROUTED5(MediaPlayerMsg_KeyError, 237 IPC_MESSAGE_ROUTED4(MediaPlayerMsg_KeyError,
242 int /* player_id */, 238 int /* player_id */,
243 std::string /* key_system */,
244 std::string /* session_id */, 239 std::string /* session_id */,
245 media::MediaKeys::KeyError /* error_code */, 240 media::MediaKeys::KeyError /* error_code */,
246 int /* system_code */) 241 int /* system_code */)
247 242
248 IPC_MESSAGE_ROUTED5(MediaPlayerMsg_KeyMessage, 243 IPC_MESSAGE_ROUTED4(MediaPlayerMsg_KeyMessage,
249 int /* player_id */, 244 int /* player_id */,
250 std::string /* key_system */,
251 std::string /* session_id */, 245 std::string /* session_id */,
252 std::string /* message */, 246 std::string /* message */,
253 std::string /* destination_url */) 247 std::string /* destination_url */)
254 248
255 // NeedKey is fired and handled in the renderer. Hence no message is needed. 249 // 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