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

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

Issue 11028087: Add decoder de-initialize and reset to the Pepper CDM API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Finish first pass. 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
Index: ppapi/api/private/ppp_content_decryptor_private.idl
diff --git a/ppapi/api/private/ppp_content_decryptor_private.idl b/ppapi/api/private/ppp_content_decryptor_private.idl
index 3f9b412f28ba1b4cd257a6b9cad28277228031a9..283220b2d23e5317295ebfc6a9478958a8aa238e 100644
--- a/ppapi/api/private/ppp_content_decryptor_private.idl
+++ b/ppapi/api/private/ppp_content_decryptor_private.idl
@@ -9,7 +9,7 @@
* Decryption Modules, not normal plugins.
*/
label Chrome {
- M23 = 0.2
+ M24 = 0.3
};
/**
@@ -100,6 +100,34 @@ interface PPP_ContentDecryptor_Private {
[in] PP_EncryptedBlockInfo encrypted_block_info);
/**
+ * Resets the video decoder. Reset completion is reported to the browser
+ * using the <code>DecoderReset()</code> method on the
+ * <code>PPB_ContentDecryptor_Private</code> interface.
+ *
+ * @param[in] request_id A request ID that allows the browser to associate a
+ * request to reset the video decoder with the corresponding call to the
+ * <code>DecoderReset()</code> method on the
xhwang 2012/10/09 16:27:27 It looks like the PPB interfaces are sharing APIs
Tom Finegan 2012/10/10 00:39:32 +ddorwin,fischman: We still need audio and video s
+ * <code>PPB_ContentDecryptor_Private</code> interface.
+ */
+ void ResetVideoDecoder(
+ [in] PP_Instance instance,
+ [in] uint32_t request_id);
+
+ /**
+ * Stops the video decoder. Stop completion is reported to the browser using
+ * the <code>DecoderStopped()</code> method on the
+ * <code>PPB_ContentDecryptor_Private</code> interface.
+ *
+ * @param[in] request_id A request ID that allows the browser to associate a
+ * request to stop the video decoder with the corresponding call to the
+ * <code>DecoderStopped()</code> method on the
+ * <code>PPB_ContentDecryptor_Private</code> interface.
+ */
+ void StopVideoDecoder(
Ami GONE FROM CHROMIUM 2012/10/09 07:25:54 Is there a reason this is "Stop" and not "Destroy"
xhwang 2012/10/09 16:27:27 In the CDM world, a video decoder can be reinitial
Ami GONE FROM CHROMIUM 2012/10/09 16:41:05 Then how about DeinitializeVideoDecoder()? Stop i
Tom Finegan 2012/10/10 00:39:32 Agreed, discussing this in the above comment.
+ [in] PP_Instance instance,
+ [in] 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

Powered by Google App Engine
This is Rietveld 408576698