Index: content/common/media/cdm_messages.h |
diff --git a/content/common/media/cdm_messages.h b/content/common/media/cdm_messages.h |
index 1efe0aec040a34f0ca05ff8b44d0aac56ca91d99..ed43bee84174d7085b274a40962321dba0bb5b2b 100644 |
--- a/content/common/media/cdm_messages.h |
+++ b/content/common/media/cdm_messages.h |
@@ -24,6 +24,8 @@ IPC_ENUM_TRAITS_MAX_VALUE(media::CdmKeyInformation::KeyStatus, |
media::CdmKeyInformation::KEY_STATUS_MAX) |
IPC_ENUM_TRAITS_MAX_VALUE(media::MediaKeys::Exception, |
media::MediaKeys::EXCEPTION_MAX) |
+IPC_ENUM_TRAITS_MAX_VALUE(media::MediaKeys::SessionType, |
+ media::MediaKeys::SESSION_TYPE_MAX) |
IPC_ENUM_TRAITS_MAX_VALUE(media::MediaKeys::MessageType, |
media::MediaKeys::MESSAGE_TYPE_MAX) |
IPC_ENUM_TRAITS_MAX_VALUE(CdmHostMsg_CreateSession_InitDataType, |
@@ -41,6 +43,17 @@ IPC_STRUCT_TRAITS_BEGIN(media::CdmKeyInformation) |
IPC_STRUCT_TRAITS_MEMBER(system_code) |
IPC_STRUCT_TRAITS_END() |
+// Parameter structure for CdmHostMsg_CreateSessionAndGenerateRequest. |
+IPC_STRUCT_BEGIN(CdmHostMsg_CreateSessionAndGenerateRequest_Params) |
+ IPC_STRUCT_MEMBER(int, render_frame_id) |
+ IPC_STRUCT_MEMBER(int, cdm_id) |
+ IPC_STRUCT_MEMBER(uint32_t, promise_id) |
+ IPC_STRUCT_MEMBER(media::MediaKeys::SessionType, session_type) |
+ IPC_STRUCT_MEMBER(CdmHostMsg_CreateSession_InitDataType, init_data_type) |
+ IPC_STRUCT_MEMBER(std::vector<uint8_t>, init_data) |
+IPC_STRUCT_END() |
+ |
+ |
// Messages from render to browser. |
IPC_MESSAGE_CONTROL4(CdmHostMsg_InitializeCdm, |
@@ -55,12 +68,15 @@ IPC_MESSAGE_CONTROL4(CdmHostMsg_SetServerCertificate, |
uint32_t /* promise_id */, |
std::vector<uint8_t> /* certificate */) |
-IPC_MESSAGE_CONTROL5(CdmHostMsg_CreateSessionAndGenerateRequest, |
+IPC_MESSAGE_CONTROL1(CdmHostMsg_CreateSessionAndGenerateRequest, |
+ CdmHostMsg_CreateSessionAndGenerateRequest_Params) |
+ |
+IPC_MESSAGE_CONTROL5(CdmHostMsg_LoadSession, |
int /* render_frame_id */, |
int /* cdm_id */, |
uint32_t /* promise_id */, |
- CdmHostMsg_CreateSession_InitDataType /* init_data_type */, |
- std::vector<uint8_t> /* init_data */) |
+ media::MediaKeys::SessionType /* session_type */, |
+ std::string /* session_id */) |
IPC_MESSAGE_CONTROL5(CdmHostMsg_UpdateSession, |
int /* render_frame_id */, |
@@ -75,6 +91,12 @@ IPC_MESSAGE_CONTROL4(CdmHostMsg_CloseSession, |
uint32_t /* promise_id */, |
std::string /* session_id */) |
+IPC_MESSAGE_CONTROL4(CdmHostMsg_RemoveSession, |
+ int /* render_frame_id */, |
+ int /* cdm_id */, |
+ uint32_t /* promise_id */, |
+ std::string /* session_id */) |
+ |
IPC_MESSAGE_CONTROL2(CdmHostMsg_DestroyCdm, |
int /* render_frame_id */, |
int /* cdm_id */) |