Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(983)

Unified Diff: ppapi/api/private/ppp_content_decryptor_private.idl

Issue 10854209: Modify the PPAPI CDM interface to pass more info. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 bd663a4cf7ce5731e0f40afa9de323db18da883d..81d353fde6d15994e0833f871f412618e87db62e 100644
--- a/ppapi/api/private/ppp_content_decryptor_private.idl
+++ b/ppapi/api/private/ppp_content_decryptor_private.idl
@@ -59,11 +59,16 @@ interface PPP_ContentDecryptor_Private {
* @param[in] key A <code>PP_Var</code> of type
* <code>PP_VARTYPE_ARRAYBUFFER</code> containing the decryption key, license,
* or other message for the given session ID.
+ *
+ * @param[in] init_data A <code>PP_Var</code> of type
+ * <code>PP_VARTYPE_ARRAYBUFFER</code> containing container specific
+ * initialization data.
*/
PP_Bool AddKey(
[in] PP_Instance instance,
[in] PP_Var session_id,
- [in] PP_Var key);
+ [in] PP_Var key,
+ [in] PP_Var init_data);
/**
* Cancels a pending key request for the specified session ID.
@@ -85,14 +90,14 @@ interface PPP_ContentDecryptor_Private {
* <code>PPB_Buffer_Dev</code> resource that contains an encrypted data
* block.
*
- * @param[in] request_id A value used by the browser to associate data
- * returned via the <code>PPB_ContentDecryptor_Private</code> interface with
- * decryption method calls.
+ * @param[in] encrypted_block_info A <code>PP_EncryptedBlockInfo</code> that
+ * contains all auxiliary information needed for decryption of the
+ * <code>encrypted_block</code>.
*/
PP_Bool Decrypt(
[in] PP_Instance instance,
[in] PP_Resource encrypted_block,
- [in] int32_t request_id);
+ [in] PP_EncryptedBlockInfo encrypted_block_info);
/**
* Decrypts the block, decodes it, and returns the unencrypted uncompressed
@@ -107,12 +112,12 @@ interface PPP_ContentDecryptor_Private {
* <code>PPB_Buffer_Dev</code> resource that contains an encrypted data
* block.
*
- * @param[in] request_id A value used by the browser to associate data
- * returned via the <code>PPB_ContentDecryptor_Private</code> interface with
- * decryption method calls.
+ * @param[in] encrypted_block_info A <code>PP_EncryptedBlockInfo</code> that
+ * contains all auxiliary information needed for decryption of the
+ * <code>encrypted_block</code>.
*/
PP_Bool DecryptAndDecode(
[in] PP_Instance instance,
[in] PP_Resource encrypted_block,
- [in] int32_t request_id);
+ [in] PP_EncryptedBlockInfo encrypted_block_info);
};

Powered by Google App Engine
This is Rietveld 408576698