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

Unified Diff: ppapi/c/private/ppp_content_decryptor_private.h

Issue 10857027: Add content decryptor related structs and update PP{P|B}_ContentDecryptor_Private. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename to pp_content_decryptor.idl 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
« no previous file with comments | « ppapi/c/private/ppb_content_decryptor_private.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/private/ppp_content_decryptor_private.h
diff --git a/ppapi/c/private/ppp_content_decryptor_private.h b/ppapi/c/private/ppp_content_decryptor_private.h
index 56b5d856f6472f0396b17f4aaa96894f61a4cf06..20909a184e6ddb6bf9dc24416a388ff5cf508a2e 100644
--- a/ppapi/c/private/ppp_content_decryptor_private.h
+++ b/ppapi/c/private/ppp_content_decryptor_private.h
@@ -4,7 +4,7 @@
*/
/* From private/ppp_content_decryptor_private.idl,
- * modified Tue Aug 14 11:06:05 2012.
+ * modified Thu Aug 16 20:19:22 2012.
*/
#ifndef PPAPI_C_PRIVATE_PPP_CONTENT_DECRYPTOR_PRIVATE_H_
@@ -16,6 +16,7 @@
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_stdint.h"
#include "ppapi/c/pp_var.h"
+#include "ppapi/c/private/pp_content_decryptor.h"
#define PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_1 \
"PPP_ContentDecryptor_Private;0.1"
@@ -100,13 +101,14 @@ struct PPP_ContentDecryptor_Private_0_1 {
* <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)(PP_Instance instance,
- PP_Resource encrypted_block,
- int32_t request_id);
+ PP_Bool (*Decrypt)(
+ PP_Instance instance,
+ PP_Resource encrypted_block,
+ const struct PP_EncryptedBlockInfo* encrypted_block_info);
/**
* Decrypts the block, decodes it, and returns the unencrypted uncompressed
* (decoded) media to the browser via the
@@ -120,13 +122,14 @@ struct PPP_ContentDecryptor_Private_0_1 {
* <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)(PP_Instance instance,
- PP_Resource encrypted_block,
- int32_t request_id);
+ PP_Bool (*DecryptAndDecode)(
+ PP_Instance instance,
+ PP_Resource encrypted_block,
+ const struct PP_EncryptedBlockInfo* encrypted_block_info);
};
typedef struct PPP_ContentDecryptor_Private_0_1 PPP_ContentDecryptor_Private;
« no previous file with comments | « ppapi/c/private/ppb_content_decryptor_private.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698