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

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

Issue 1131753003: Plumb |use_secure_codecs| through to BrowserCdmFactoryAndroid. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update unittest. Created 5 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 content decryption module (CDM) implementation. 5 // IPC messages for content decryption module (CDM) implementation.
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 22
23 IPC_ENUM_TRAITS_MAX_VALUE(media::CdmKeyInformation::KeyStatus, 23 IPC_ENUM_TRAITS_MAX_VALUE(media::CdmKeyInformation::KeyStatus,
24 media::CdmKeyInformation::KEY_STATUS_MAX) 24 media::CdmKeyInformation::KEY_STATUS_MAX)
25 IPC_ENUM_TRAITS_MAX_VALUE(media::MediaKeys::Exception, 25 IPC_ENUM_TRAITS_MAX_VALUE(media::MediaKeys::Exception,
26 media::MediaKeys::EXCEPTION_MAX) 26 media::MediaKeys::EXCEPTION_MAX)
27 IPC_ENUM_TRAITS_MAX_VALUE(media::MediaKeys::MessageType, 27 IPC_ENUM_TRAITS_MAX_VALUE(media::MediaKeys::MessageType,
28 media::MediaKeys::MESSAGE_TYPE_MAX) 28 media::MediaKeys::MESSAGE_TYPE_MAX)
29 IPC_ENUM_TRAITS_MAX_VALUE(CdmHostMsg_CreateSession_InitDataType, 29 IPC_ENUM_TRAITS_MAX_VALUE(CdmHostMsg_CreateSession_InitDataType,
30 INIT_DATA_TYPE_MAX) 30 INIT_DATA_TYPE_MAX)
31 31
32 IPC_STRUCT_BEGIN(CdmHostMsg_InitializeCdm_Params)
33 IPC_STRUCT_MEMBER(std::string, key_system)
34 IPC_STRUCT_MEMBER(GURL, security_origin)
35 IPC_STRUCT_MEMBER(bool, use_hw_secure_codecs)
36 IPC_STRUCT_END()
37
32 IPC_STRUCT_TRAITS_BEGIN(media::CdmKeyInformation) 38 IPC_STRUCT_TRAITS_BEGIN(media::CdmKeyInformation)
33 IPC_STRUCT_TRAITS_MEMBER(key_id) 39 IPC_STRUCT_TRAITS_MEMBER(key_id)
34 IPC_STRUCT_TRAITS_MEMBER(status) 40 IPC_STRUCT_TRAITS_MEMBER(status)
35 IPC_STRUCT_TRAITS_MEMBER(system_code) 41 IPC_STRUCT_TRAITS_MEMBER(system_code)
36 IPC_STRUCT_TRAITS_END() 42 IPC_STRUCT_TRAITS_END()
37 43
38 // Messages from render to browser. 44 // Messages from render to browser.
39 45
40 IPC_MESSAGE_CONTROL5(CdmHostMsg_InitializeCdm, 46 IPC_MESSAGE_CONTROL4(CdmHostMsg_InitializeCdm,
41 int /* render_frame_id */, 47 int /* render_frame_id */,
42 int /* cdm_id */, 48 int /* cdm_id */,
43 uint32_t /* promise_id */, 49 uint32_t /* promise_id */,
44 std::string /* key_system */, 50 CdmHostMsg_InitializeCdm_Params /* params */)
45 GURL /* security_origin */)
46 51
47 IPC_MESSAGE_CONTROL4(CdmHostMsg_SetServerCertificate, 52 IPC_MESSAGE_CONTROL4(CdmHostMsg_SetServerCertificate,
48 int /* render_frame_id */, 53 int /* render_frame_id */,
49 int /* cdm_id */, 54 int /* cdm_id */,
50 uint32_t /* promise_id */, 55 uint32_t /* promise_id */,
51 std::vector<uint8_t> /* certificate */) 56 std::vector<uint8_t> /* certificate */)
52 57
53 IPC_MESSAGE_CONTROL5(CdmHostMsg_CreateSessionAndGenerateRequest, 58 IPC_MESSAGE_CONTROL5(CdmHostMsg_CreateSessionAndGenerateRequest,
54 int /* render_frame_id */, 59 int /* render_frame_id */,
55 int /* cdm_id */, 60 int /* cdm_id */,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 int /* cdm_id */, 118 int /* cdm_id */,
114 uint32_t /* promise_id */, 119 uint32_t /* promise_id */,
115 std::string /* session_id */) 120 std::string /* session_id */)
116 121
117 IPC_MESSAGE_ROUTED5(CdmMsg_RejectPromise, 122 IPC_MESSAGE_ROUTED5(CdmMsg_RejectPromise,
118 int /* cdm_id */, 123 int /* cdm_id */,
119 uint32_t /* promise_id */, 124 uint32_t /* promise_id */,
120 media::MediaKeys::Exception /* exception */, 125 media::MediaKeys::Exception /* exception */,
121 uint32_t /* system_code */, 126 uint32_t /* system_code */,
122 std::string /* error_message */) 127 std::string /* error_message */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698