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

Unified Diff: ppapi/api/dev/ppb_content_decryption_module_dev.idl

Issue 10545036: Add PPAPI decryptor interfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implement enough thunk stuff to call into PluginInstance CDM stubs Created 8 years, 5 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/dev/ppb_content_decryption_module_dev.idl
diff --git a/ppapi/api/dev/ppb_content_decryption_module_dev.idl b/ppapi/api/dev/ppb_content_decryption_module_dev.idl
new file mode 100644
index 0000000000000000000000000000000000000000..b730d303458d92f919171fc4d095def9f27a5519
--- /dev/null
+++ b/ppapi/api/dev/ppb_content_decryption_module_dev.idl
@@ -0,0 +1,93 @@
+/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/**
+ * This file defines the <code>PPP_ContentDecryptionModule_Dev</code>
ddorwin 2012/07/13 19:19:48 We should probably call this ContentDecryptor or s
Tom Finegan 2012/07/17 01:11:10 Went with ContentDecryptor/Done.
+ * interface.
+ */
+label Chrome {
+ M22 = 0.1
+};
+
+/**
+ * <code>PPB_ContentDecryptionModule_Dev</code> structure contains the function
+ * pointers the browser may implement to support plugins implementing the
ddorwin 2012/07/13 19:19:48 Why may and not MUST?
Tom Finegan 2012/07/17 01:11:10 Lack of certainty at time of writing. Done. :)
+ * <code>PPP_ContentDecryptionModule_Dev</code> interface.
+ */
+interface PPB_ContentDecryptionModule_Dev {
+
+ /**
+ * A key or license is needed to decrypt media data.
+ */
+ void NeedKey(
+ [in] PP_Instance instance,
+ [in] PP_Var key_system,
+ [in] PP_Var session_id,
+ [in] PP_Resource init_data);
+
+ /**
+ * A key has been added as the result of a call to the <code>AddKey()</code>
+ * method on the <code>PPP_ContentDecryptionModule_Dev</code> interface.
+ */
+ void KeyAdded(
+ [in] PP_Instance instance,
+ [in] PP_Var key_system,
+ [in] PP_Var session_id);
+
+ /**
+ * A message or request has been generated by or for key_system. For example,
+ * a key request has been generated as the result of call to the
+ * <code>GenerateKeyRequest()</code> method on the
+ * <code>PPP_ContentDecryptionModule_Dev</code> interface, or another message
+ * must be sent in response to an <code>AddKey()</code> call.
ddorwin 2012/07/13 19:19:48 Messages may also be sent at other times during a
Tom Finegan 2012/07/17 01:11:10 Added another sentence explaining that AddKey is n
+ */
+ void KeyMessage(
+ [in] PP_Instance instance,
+ [in] PP_Var key_system,
+ [in] PP_Var session_id,
+ [in] PP_Resource message,
ddorwin 2012/07/13 19:19:48 We should define the types of all PP_Resource vari
Tom Finegan 2012/07/17 01:11:10 Done. I followed the doc, but aren't we going to u
+ [in] PP_Var default_url);
+
+ /**
+ * An error occured in a <code>PPP_ContentDecryptionModule_Dev</code> method,
ddorwin 2012/07/13 19:19:48 nit: remove ','
Tom Finegan 2012/07/17 01:11:10 Done.
+ * or within the plugin implementing the interface.
+ */
+ void KeyError(
+ [in] PP_Instance instance,
+ [in] PP_Var key_system,
+ [in] PP_Var session_id,
+ [in] uint16_t media_error,
+ [in] uint16_t system_error);
+
+ /**
+ * Called after the <code>Decrypt</code> method on the
+ * <code>PPP_ContentDecryptionModule_Dev</code> interface completes to
+ * deliver decrypted_block to the media stack.
+ */
+ void DeliverBlock(
+ [in] PP_Instance instance,
+ [in] PP_Resource decrypted_block,
+ [in] PP_CompletionCallback callback);
+
+ /**
+ * Called after the <code>DecryptAndDecode</code> method on the
+ * <code>PPP_ContentDecryptionModule_Dev</code> interface completes to
+ * deliver decrypted_frame to the media stack.
+ */
+ void DeliverFrame(
+ [in] PP_Instance instance,
+ [in] PP_Resource decrypted_frame,
+ [in] PP_CompletionCallback callback);
+
+ /**
+ * Called after the <code>DecryptAndDecode</code> method on the
+ * <code>PPP_ContentDecryptionModule_Dev</code> interface completes to
+ * deliver decrypted_samples to the media stack.
+ */
+ void DeliverSamples(
+ [in] PP_Instance instance,
+ [in] PP_Resource decrypted_samples,
+ [in] PP_CompletionCallback callback);
+};

Powered by Google App Engine
This is Rietveld 408576698