Index: ppapi/cpp/private/content_decryptor_private.h |
diff --git a/ppapi/cpp/private/content_decryptor_private.h b/ppapi/cpp/private/content_decryptor_private.h |
index 629540abdb51afbf22bcd255341a896013b6ec81..4e93657b3504d7999b12d9e4cd43efd95f21fe38 100644 |
--- a/ppapi/cpp/private/content_decryptor_private.h |
+++ b/ppapi/cpp/private/content_decryptor_private.h |
@@ -68,8 +68,13 @@ class ContentDecryptor_Private { |
const std::string& session_id, |
int32_t media_error, |
int32_t system_code); |
+ |
+ // The plugin must not hold a reference to the encrypted buffer resource |
+ // provided to Decrypt() when it calls this method. The browser will reuse |
+ // the buffer in a subsequent Decrypt() call. |
void DeliverBlock(pp::Buffer_Dev decrypted_block, |
const PP_DecryptedBlockInfo& decrypted_block_info); |
+ |
void DecoderInitializeDone(PP_DecryptorStreamType decoder_type, |
uint32_t request_id, |
bool status); |
@@ -77,8 +82,16 @@ class ContentDecryptor_Private { |
uint32_t request_id); |
void DecoderResetDone(PP_DecryptorStreamType decoder_type, |
uint32_t request_id); |
+ |
+ // The plugin must not hold a reference to the encrypted buffer resource |
+ // provided to DecryptAndDecode() when it calls this method. The browser will |
+ // reuse the buffer in a subsequent DecryptAndDecode() call. |
void DeliverFrame(pp::Buffer_Dev decrypted_frame, |
const PP_DecryptedFrameInfo& decrypted_frame_info); |
+ |
+ // The plugin must not hold a reference to the encrypted buffer resource |
+ // provided to DecryptAndDecode() when it calls this method. The browser will |
+ // reuse the buffer in a subsequent DecryptAndDecode() call. |
void DeliverSamples(pp::Buffer_Dev audio_frames, |
const PP_DecryptedBlockInfo& decrypted_block_info); |