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

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: IPC_STRUCT 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
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/common/media/cdm_messages_enums.h" 13 #include "content/common/media/cdm_messages_enums.h"
14 #include "ipc/ipc_message_macros.h" 14 #include "ipc/ipc_message_macros.h"
15 #include "media/base/cdm_key_information.h" 15 #include "media/base/cdm_key_information.h"
16 #include "media/base/media_keys.h" 16 #include "media/base/media_keys.h"
17 #include "url/gurl.h" 17 #include "url/gurl.h"
18 18
19 #undef IPC_MESSAGE_EXPORT 19 #undef IPC_MESSAGE_EXPORT
20 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 20 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
21 #define IPC_MESSAGE_START CdmMsgStart 21 #define IPC_MESSAGE_START CdmMsgStart
22 22
23 IPC_STRUCT_BEGIN(CdmHostMsg_InitializeCdm_Params)
nasko 2015/05/14 22:13:58 nit: Move this to be in the same section of the fi
sandersd (OOO until July 31) 2015/05/14 22:41:32 Done.
24 IPC_STRUCT_MEMBER(std::string, key_system)
25 IPC_STRUCT_MEMBER(GURL, security_origin)
26 IPC_STRUCT_MEMBER(bool, use_hw_secure_codecs)
27 IPC_STRUCT_END()
28
23 IPC_ENUM_TRAITS_MAX_VALUE(media::CdmKeyInformation::KeyStatus, 29 IPC_ENUM_TRAITS_MAX_VALUE(media::CdmKeyInformation::KeyStatus,
24 media::CdmKeyInformation::KEY_STATUS_MAX) 30 media::CdmKeyInformation::KEY_STATUS_MAX)
25 IPC_ENUM_TRAITS_MAX_VALUE(media::MediaKeys::Exception, 31 IPC_ENUM_TRAITS_MAX_VALUE(media::MediaKeys::Exception,
26 media::MediaKeys::EXCEPTION_MAX) 32 media::MediaKeys::EXCEPTION_MAX)
27 IPC_ENUM_TRAITS_MAX_VALUE(media::MediaKeys::MessageType, 33 IPC_ENUM_TRAITS_MAX_VALUE(media::MediaKeys::MessageType,
28 media::MediaKeys::MESSAGE_TYPE_MAX) 34 media::MediaKeys::MESSAGE_TYPE_MAX)
29 IPC_ENUM_TRAITS_MAX_VALUE(CdmHostMsg_CreateSession_InitDataType, 35 IPC_ENUM_TRAITS_MAX_VALUE(CdmHostMsg_CreateSession_InitDataType,
30 INIT_DATA_TYPE_MAX) 36 INIT_DATA_TYPE_MAX)
31 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
« no previous file with comments | « content/browser/media/cdm/browser_cdm_manager.cc ('k') | content/renderer/media/crypto/ppapi_decryptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698