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

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

Issue 11087044: Generalize Pepper CDM API decrypt and decode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 8 years, 2 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/pp_content_decryptor.h ('k') | ppapi/cpp/private/content_decryptor_private.h » ('j') | 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 f3e5bde1e59950089ffc9eb86091c617f369007a..da30fa90a4c9723c01ce89b1405be1a6f085294f 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 Thu Oct 11 20:53:07 2012.
+ * modified Thu Oct 11 22:28:01 2012.
*/
#ifndef PPAPI_C_PRIVATE_PPP_CONTENT_DECRYPTOR_PRIVATE_H_
@@ -177,23 +177,27 @@ struct PPP_ContentDecryptor_Private_0_3 {
PP_DecryptorStreamType decoder_type,
uint32_t request_id);
/**
- * Decrypts encrypted_video_frame, decodes it, and returns the unencrypted
- * uncompressed (decoded) video frame to the browser via the
- * <code>DeliverFrame()</code> method on the
+ * Decrypts encrypted_buffer, decodes it, and returns the unencrypted
+ * uncompressed (decoded) data to the browser via the
+ * <code>DeliverFrame()</code> or <code>DeliverSamples()</code> method on the
* <code>PPB_ContentDecryptor_Private</code> interface.
*
- * @param[in] encrypted_video_frame A <code>PP_Resource</code> corresponding
- * to a <code>PPB_Buffer_Dev</code> resource that contains an encrypted video
- * frame.
+ * @param[in] decoder_type A <code>PP_DecryptorStreamType</code> that
+ * specifies the decoder to use after <code>encrypted_buffer</code> is
+ * decrypted.
+ *
+ * @param[in] encrypted_buffer A <code>PP_Resource</code> corresponding to a
+ * <code>PPB_Buffer_Dev</code> resource that contains encrypted media data.
*
- * @param[in] encrypted_video_frame_info A
- * <code>PP_EncryptedVideoFrameInfo</code> that contains all information
- * needed to decrypt and decode <code>encrypted_video_frame</code>.
+ * @param[in] encrypted_block_info A <code>PP_EncryptedBlockInfo</code> that
+ * contains all auxiliary information needed for decryption of the
+ * <code>encrypted_block</code>.
*/
- void (*DecryptAndDecodeFrame)(
+ void (*DecryptAndDecode)(
PP_Instance instance,
- PP_Resource encrypted_video_frame,
- const struct PP_EncryptedVideoFrameInfo* encrypted_video_frame_info);
+ PP_DecryptorStreamType decoder_type,
+ PP_Resource encrypted_buffer,
+ const struct PP_EncryptedBlockInfo* encrypted_block_info);
};
typedef struct PPP_ContentDecryptor_Private_0_3 PPP_ContentDecryptor_Private;
« no previous file with comments | « ppapi/c/private/pp_content_decryptor.h ('k') | ppapi/cpp/private/content_decryptor_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698