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

Unified Diff: ppapi/cpp/private/content_decryptor_private.h

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/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);

Powered by Google App Engine
This is Rietveld 408576698