Index: ppapi/c/dev/ppp_content_decryption_module_dev.h |
diff --git a/ppapi/c/dev/ppp_content_decryption_module_dev.h b/ppapi/c/dev/ppp_content_decryption_module_dev.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..80128f7f1a5fd2beaf1b1968c93f764b1d5a6b2d |
--- /dev/null |
+++ b/ppapi/c/dev/ppp_content_decryption_module_dev.h |
@@ -0,0 +1,77 @@ |
+/* 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. |
+ */ |
+ |
+/* From dev/ppp_content_decryption_module_dev.idl, |
+ * modified Wed Jun 06 16:39:26 2012. |
+ */ |
+ |
+#ifndef PPAPI_C_DEV_PPP_CONTENT_DECRYPTION_MODULE_DEV_H_ |
+#define PPAPI_C_DEV_PPP_CONTENT_DECRYPTION_MODULE_DEV_H_ |
+ |
+#include "ppapi/c/pp_bool.h" |
+#include "ppapi/c/pp_completion_callback.h" |
+#include "ppapi/c/pp_instance.h" |
+#include "ppapi/c/pp_macros.h" |
+#include "ppapi/c/pp_resource.h" |
+#include "ppapi/c/pp_stdint.h" |
+ |
+#define PPP_CONTENTDECRYPTIONMODULE_DEV_INTERFACE_0_1 \ |
+ "PPP_ContentDecryptionModule(Dev);0.1" |
+#define PPP_CONTENTDECRYPTIONMODULE_DEV_INTERFACE \ |
+ PPP_CONTENTDECRYPTIONMODULE_DEV_INTERFACE_0_1 |
+ |
+/** |
+ * @file |
+ * This file defines the <code>PPP_ContentDecryptionModule_Dev</code> |
+ * interface. |
+ */ |
+ |
+/** |
+ * @addtogroup Interfaces |
+ * @{ |
+ */ |
+ |
+/** |
+ * <code>PPP_ContentDecryptionModule_Dev</code> structure contains the function |
+ * pointers the decryption plugin MUST implement to provide services needed by |
+ * the media stack. |
+ */ |
+struct PPP_ContentDecryptionModule_Dev_0_1 { |
+ /** |
+ * Provides a key or license to use for decryption. The key determines |
+ * which methods are allowed by the plugin. |
+ */ |
+ PP_Bool (*AddKey)(PP_Instance instance, PP_Resource key); |
+ |
+ /** |
+ * Decrypts the block and returns the unencrypted block. |
+ * In the case of media, the block contains encoded data. |
+ * decryptedBlock is valid only after the callback is notified of success. |
+ */ |
+ PP_Bool (*Decrypt)(PP_Instance instance, |
+ PP_Resource encrypted_block, |
+ PP_Resource decrypted_block, |
+ struct PP_CompletionCallback callback); |
+ |
+/** |
+ * Decrypts the block then decodes it and returns the raw (decoded) |
+ * unencrypted frame. |
+ * decodedFrame is valid only after the callback is notified of success. |
+ */ |
+ PP_Bool (*DecryptAndDecode)(PP_Instance instance, |
+ PP_Resource encrypted_block, |
+ PP_Resource decoded_frame, |
+ struct PP_CompletionCallback callback); |
+}; |
+ |
+typedef struct PPP_ContentDecryptionModule_Dev_0_1 |
+ PPP_ContentDecryptionModule_Dev; |
+ |
+/** |
+ * @} |
+ */ |
+ |
+#endif /* PPAPI_C_DEV_PPP_CONTENT_DECRYPTION_MODULE_DEV_H_ */ |
+ |