From ab0a50979b9eb4dfa3320eff7e187e41efedf7a9 Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Fri, 8 Aug 2014 14:30:41 +0200 Subject: Update Chromium to beta version 37.0.2062.68 Change-Id: I188e3b5aff1bec75566014291b654eb19f5bc8ca Reviewed-by: Andras Becsi --- .../c/private/ppp_content_decryptor_private.h | 75 ++++++++++++++++------ 1 file changed, 54 insertions(+), 21 deletions(-) (limited to 'chromium/ppapi/c/private/ppp_content_decryptor_private.h') diff --git a/chromium/ppapi/c/private/ppp_content_decryptor_private.h b/chromium/ppapi/c/private/ppp_content_decryptor_private.h index 27d172d7e73..3470005802a 100644 --- a/chromium/ppapi/c/private/ppp_content_decryptor_private.h +++ b/chromium/ppapi/c/private/ppp_content_decryptor_private.h @@ -4,7 +4,7 @@ */ /* From private/ppp_content_decryptor_private.idl, - * modified Tue Dec 3 17:05:10 2013. + * modified Thu May 1 10:36:31 2014. */ #ifndef PPAPI_C_PRIVATE_PPP_CONTENT_DECRYPTOR_PRIVATE_H_ @@ -18,10 +18,10 @@ #include "ppapi/c/pp_var.h" #include "ppapi/c/private/pp_content_decryptor.h" -#define PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_9 \ - "PPP_ContentDecryptor_Private;0.9" +#define PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_12 \ + "PPP_ContentDecryptor_Private;0.12" #define PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE \ - PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_9 + PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_12 /** * @file @@ -42,7 +42,7 @@ * Decryption Module (CDM) for Encrypted Media Extensions: * http://www.w3.org/TR/encrypted-media/ */ -struct PPP_ContentDecryptor_Private_0_9 { +struct PPP_ContentDecryptor_Private_0_12 { /** * Initialize for the specified key system. * @@ -51,29 +51,49 @@ struct PPP_ContentDecryptor_Private_0_9 { */ void (*Initialize)(PP_Instance instance, struct PP_Var key_system); /** - * Creates a session. type contains the MIME type of + * Creates a session. init_data_type contains the MIME type of * init_data. init_data is a data buffer * containing data for use in generating the request. * - * Note: CreateSession() must create the session ID used in - * other methods on this interface. The session ID must be provided to the - * browser by the CDM via SessionCreated() on the + * Note: CreateSession() must create a web session ID and provide + * it to the browser via SessionCreated() on the * PPB_ContentDecryptor_Private interface. * - * @param[in] session_id A reference for the session for which a session - * should be generated. + * @param[in] promise_id A reference for the promise that gets resolved or + * rejected depending upon the success or failure when creating the session. * - * @param[in] type A PP_Var of type + * @param[in] init_data_type A PP_Var of type * PP_VARTYPE_STRING containing the MIME type for init_data. * * @param[in] init_data A PP_Var of type * PP_VARTYPE_ARRAYBUFFER containing container specific * initialization data. + * + * @param[in] session_type A PP_SessionType that indicates the + * type of session to be created. */ void (*CreateSession)(PP_Instance instance, - uint32_t session_id, - struct PP_Var type, - struct PP_Var init_data); + uint32_t promise_id, + struct PP_Var init_data_type, + struct PP_Var init_data, + PP_SessionType session_type); + /** + * Loads a session whose web session ID is web_session_id. + * + * Note: After the session is successfully loaded, the CDM must call + * SessionCreated() with web_session_id on the + * PPB_ContentDecryptor_Private interface. + * + * @param[in] promise_id A reference for the promise that gets resolved or + * rejected depending upon the success or failure of loading the session. + * + * @param[in] web_session_id A PP_Var of type + * PP_VARTYPE_STRING containing the web session ID of the session + * to load. + */ + void (*LoadSession)(PP_Instance instance, + uint32_t promise_id, + struct PP_Var web_session_id); /** * Provides a license or other message to the decryptor. * @@ -86,22 +106,35 @@ struct PPP_ContentDecryptor_Private_0_9 { * PPB_ContentDecryptor_Private interface, and the browser * must notify the web application. * - * @param[in] session_id A reference for the session to update. + * @param[in] promise_id A reference for the promise that gets resolved or + * rejected depending upon the success or failure of updating the session. + * + * @param[in] web_session_id A PP_Var of type + * PP_VARTYPE_STRING containing the web session ID of the session + * to be updated. * * @param[in] response A PP_Var of type * PP_VARTYPE_ARRAYBUFFER containing the license or other * message for the given session ID. */ void (*UpdateSession)(PP_Instance instance, - uint32_t session_id, + uint32_t promise_id, + struct PP_Var web_session_id, struct PP_Var response); /** * Release the specified session and related resources. * - * @param[in] session_id A reference for the session that should be - * released. + * @param[in] promise_id A reference for the promise that gets resolved or + * rejected depending upon the success or failure of releasing the session. + * + * @param[in] web_session_id A PP_Var of type + * PP_VARTYPE_STRING containing the web session ID of the session + * to be released. + * */ - void (*ReleaseSession)(PP_Instance instance, uint32_t session_id); + void (*ReleaseSession)(PP_Instance instance, + uint32_t promise_id, + struct PP_Var web_session_id); /** * Decrypts the block and returns the unencrypted block via * DeliverBlock() on the @@ -228,7 +261,7 @@ struct PPP_ContentDecryptor_Private_0_9 { const struct PP_EncryptedBlockInfo* encrypted_block_info); }; -typedef struct PPP_ContentDecryptor_Private_0_9 PPP_ContentDecryptor_Private; +typedef struct PPP_ContentDecryptor_Private_0_12 PPP_ContentDecryptor_Private; /** * @} */ -- cgit v1.2.3