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..b529019af0bbac1abb096a554e54413a6f9f3d8d 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 { |
nasko
2015/05/14 21:53:18
structs should be defined using IPC_STRUCT_BEGIN/I
sandersd (OOO until July 31)
2015/05/14 22:05:16
Oh excellent, that looks much better.
|
+ std::string key_system; |
+ GURL security_origin; |
+ bool use_hw_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_hw_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 */, |