Chromium Code Reviews| Index: content/common/media/cdm_messages.h |
| diff --git a/content/common/media/cdm_messages.h b/content/common/media/cdm_messages.h |
| index e9d1958edc65524b33868e284f40b194b9f12def..07d09563cc5781b35b1da7db4a4bf81498bd6c36 100644 |
| --- a/content/common/media/cdm_messages.h |
| +++ b/content/common/media/cdm_messages.h |
| @@ -16,6 +16,21 @@ |
| #include "media/base/media_keys.h" |
| #include "url/gurl.h" |
| +#ifndef CONTENT_COMMON_MEDIA_CDM_MESSAGES_H_ |
| +#define CONTENT_COMMON_MEDIA_CDM_MESSAGES_H_ |
| + |
| +namespace content { |
| + |
| +struct InitializeCdmParameters { |
|
ddorwin
2015/05/13 06:03:20
Assuming this pattern was copied from somewhere el
sandersd (OOO until July 31)
2015/05/13 18:17:14
It was not copied from anywhere else, but it is on
|
| + std::string key_system; |
| + GURL security_origin; |
| + bool use_secure_codecs = false; |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_COMMON_MEDIA_CDM_MESSAGES_H_ |
| + |
| #undef IPC_MESSAGE_EXPORT |
| #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| #define IPC_MESSAGE_START CdmMsgStart |
| @@ -35,14 +50,19 @@ IPC_STRUCT_TRAITS_BEGIN(media::CdmKeyInformation) |
| IPC_STRUCT_TRAITS_MEMBER(system_code) |
| IPC_STRUCT_TRAITS_END() |
| +IPC_STRUCT_TRAITS_BEGIN(content::InitializeCdmParameters) |
| + IPC_STRUCT_TRAITS_MEMBER(key_system) |
| + IPC_STRUCT_TRAITS_MEMBER(security_origin) |
| + IPC_STRUCT_TRAITS_MEMBER(use_secure_codecs) |
| +IPC_STRUCT_TRAITS_END() |
| + |
| // Messages from render to browser. |
| -IPC_MESSAGE_CONTROL5(CdmHostMsg_InitializeCdm, |
| +IPC_MESSAGE_CONTROL4(CdmHostMsg_InitializeCdm, |
| int /* render_frame_id */, |
| int /* cdm_id */, |
| uint32_t /* promise_id */, |
| - std::string /* key_system */, |
| - GURL /* security_origin */) |
| + content::InitializeCdmParameters /* parameters */) |
| IPC_MESSAGE_CONTROL4(CdmHostMsg_SetServerCertificate, |
| int /* render_frame_id */, |