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

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

Issue 11477002: Fix in process PPAPI decryption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Run generator.py on a linux box, and cross fingers...? Created 8 years 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/ppb_content_decryptor_private.idl
diff --git a/ppapi/api/private/ppb_content_decryptor_private.idl b/ppapi/api/private/ppb_content_decryptor_private.idl
index e5e021adbc51167e82b8a5274e1d3481ee624ea6..6b3dc8548da20ba94ee45d23e0d30403aefebe34 100644
--- a/ppapi/api/private/ppb_content_decryptor_private.idl
+++ b/ppapi/api/private/ppb_content_decryptor_private.idl
@@ -133,6 +133,10 @@ interface PPB_ContentDecryptor_Private {
* <code>PPP_ContentDecryptor_Private</code> interface completes to
* deliver decrypted_block to the browser for decoding and rendering.
*
+ * The plugin must not hold a reference to the encrypted buffer resource
+ * provided to <code>Decrypt()</code> when it calls this method. The browser
+ * will reuse the buffer in a subsequent <code>Decrypt()</code> call.
+ *
* @param[in] decrypted_block A <code>PP_Resource</code> corresponding to a
* <code>PPB_Buffer_Dev</code> resource that contains a decrypted data
* block.
@@ -207,6 +211,11 @@ interface PPB_ContentDecryptor_Private {
* <code>PPP_ContentDecryptor_Private</code> interface completes to deliver
* a decrypted and decoded video frame to the browser for rendering.
*
+ * The plugin must not hold a reference to the encrypted buffer resource
+ * provided to <code>DecryptAndDecode()</code> when it calls this method. The
+ * browser will reuse the buffer in a subsequent
+ * <code>DecryptAndDecode()</code> call.
+ *
* @param[in] decrypted_frame A <code>PP_Resource</code> corresponding to a
* <code>PPB_Buffer_Dev</code> resource that contains a video frame.
*
@@ -221,10 +230,15 @@ interface PPB_ContentDecryptor_Private {
/**
* Called after the <code>DecryptAndDecode()</code> method on the
- * <code>PPP_ContentDecryptor_Private</code> interface completes to
- * deliver a buffer of decrypted and decoded audio samples to the browser for
+ * <code>PPP_ContentDecryptor_Private</code> interface completes to deliver
+ * a buffer of decrypted and decoded audio samples to the browser for
* rendering.
*
+ * The plugin must not hold a reference to the encrypted buffer resource
+ * provided to <code>DecryptAndDecode()</code> when it calls this method. The
+ * browser will reuse the buffer in a subsequent
+ * <code>DecryptAndDecode()</code> call.
+ *
* <code>audio_frames</code> can contain multiple audio output buffers. Each
* buffer is serialized in this format:
*
« no previous file with comments | « no previous file | ppapi/c/private/ppb_content_decryptor_private.h » ('j') | ppapi/proxy/ppp_content_decryptor_private_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698