Chromium Code Reviews| Index: ppapi/api/private/ppp_content_decryptor_private.idl |
| diff --git a/ppapi/api/private/ppp_content_decryptor_private.idl b/ppapi/api/private/ppp_content_decryptor_private.idl |
| index 73a52258bb03fb0fc1ad08a386d28638c3d6b833..4a2c7b3980e44c1860ccfef84d6b618f8fe7622c 100644 |
| --- a/ppapi/api/private/ppp_content_decryptor_private.idl |
| +++ b/ppapi/api/private/ppp_content_decryptor_private.idl |
| @@ -31,6 +31,21 @@ interface PPP_ContentDecryptor_Private { |
| [in] PP_Var key_system); |
| /** |
| + * Provides a server certificate to be used to encrypt messages to the |
| + * license server. |
| + * |
| + * @param[in] promise_id A reference for the promise that gets resolved or |
| + * rejected depending upon the success or failure of setti ng the certificate. |
|
ddorwin
2014/08/22 20:49:21
setting
jrummell
2014/08/25 21:54:37
Done.
|
| + * |
| + * @param[in] server_certificate A <code>PP_Var</code> of type |
| + * <code>PP_VARTYPE_ARRAYBUFFER</code> containing the certificate to be used. |
| + */ |
| + void SetServerCertificate( |
| + [in] PP_Instance instance, |
| + [in] uint32_t promise_id, |
| + [in] PP_Var server_certificate); |
| + |
| + /** |
| * Creates a session. <code>init_data_type</code> contains the MIME type of |
| * <code>init_data</code>. <code>init_data</code> is a data buffer |
| * containing data for use in generating the request. |
| @@ -108,17 +123,51 @@ interface PPP_ContentDecryptor_Private { |
| [in] PP_Var response); |
| /** |
| - * Release the specified session and related resources. |
| + * Get the key IDs for keys in the session that the CDM knows are currently |
| + * usable to decrypt media data. |
| + * |
| + * @param[in] promise_id A reference for the promise that gets resolved or |
| + * rejected depending upon the success or failure of obtaining the key IDs. |
| + * |
| + * @param[in] web_session_id A <code>PP_Var</code> of type |
| + * <code>PP_VARTYPE_STRING</code> containing the web session ID of the session |
| + * to be queried. |
| + * |
| + */ |
| + void GetUsableKeyIds( |
| + [in] PP_Instance instance, |
| + [in] uint32_t promise_id, |
| + [in] PP_Var web_session_id); |
| + |
| + /** |
| + * Close the specified session and related resources. |
| + * |
| + * @param[in] promise_id A reference for the promise that gets resolved or |
| + * rejected depending upon the success or failure of closing the session. |
| + * |
| + * @param[in] web_session_id A <code>PP_Var</code> of type |
| + * <code>PP_VARTYPE_STRING</code> containing the web session ID of the session |
| + * to be closed. |
| + * |
| + */ |
| + void CloseSession( |
| + [in] PP_Instance instance, |
| + [in] uint32_t promise_id, |
| + [in] PP_Var web_session_id); |
| + |
| + /** |
| + * Remove stored data associated with this session. |
| * |
| * @param[in] promise_id A reference for the promise that gets resolved or |
| - * rejected depending upon the success or failure of releasing the session. |
| + * rejected depending upon the success or failure of removing the session |
| + * data. |
| * |
| * @param[in] web_session_id A <code>PP_Var</code> of type |
| * <code>PP_VARTYPE_STRING</code> containing the web session ID of the session |
| - * to be released. |
| + * to be removed. |
| * |
| */ |
| - void ReleaseSession( |
| + void RemoveSession( |
| [in] PP_Instance instance, |
| [in] uint32_t promise_id, |
| [in] PP_Var web_session_id); |