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

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

Issue 10545036: Add PPAPI decryptor interfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed arg names in comments Created 8 years, 6 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
« no previous file with comments | « no previous file | ppapi/c/dev/ppp_content_decryption_module_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/dev/ppp_content_decryption_module_dev.idl
diff --git a/ppapi/api/dev/ppp_content_decryption_module_dev.idl b/ppapi/api/dev/ppp_content_decryption_module_dev.idl
new file mode 100644
index 0000000000000000000000000000000000000000..dd31cd31c6e6e9a8322aeb6ea1f57d94766240ea
--- /dev/null
+++ b/ppapi/api/dev/ppp_content_decryption_module_dev.idl
@@ -0,0 +1,49 @@
+/* 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>
+ * interface.
+ */
+label Chrome {
+ M22 = 0.1
+};
+
+/**
+ * <code>PPP_ContentDecryptionModule_Dev</code> structure contains the function
+ * pointers the decryption plugin MUST implement to provide services needed by
+ * the media stack.
+ */
+interface PPP_ContentDecryptionModule_Dev {
+ /**
+ * Provides a key or license to use for decryption. The key determines
+ * which methods are allowed by the plugin.
+ */
+ PP_Bool AddKey(
+ [in] PP_Instance instance,
+ [in] PP_Resource key);
ddorwin 2012/06/07 18:51:26 need session_id. (initData is also missing but wil
Tom Finegan 2012/06/08 02:41:49 Done/added in new patchset.
+
+ /**
+ * Decrypts the block and returns the unencrypted block.
+ * In the case of media, the block contains encoded data.
+ * decrypted_block is valid only after the callback is notified of success.
+ */
+ PP_Bool Decrypt(
+ [in] PP_Instance instance,
+ [in] PP_Resource encrypted_block,
ddorwin 2012/06/07 18:51:26 Do other APIs provide comments as to what type of
+ [in] PP_Resource decrypted_block,
+ [in] PP_CompletionCallback callback);
+
+ /**
+ * Decrypts the block then decodes it and returns the raw (decoded)
+ * unencrypted frame.
+ * decoded_frame is valid only after the callback is notified of success.
+ */
+ PP_Bool DecryptAndDecode(
+ [in] PP_Instance instance,
+ [in] PP_Resource encrypted_block,
+ [in] PP_Resource decoded_frame,
+ [in] PP_CompletionCallback callback);
+};
« no previous file with comments | « no previous file | ppapi/c/dev/ppp_content_decryption_module_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698