Index: ppapi/c/dev/pp_decryption_buffer_dev.h |
diff --git a/ppapi/c/dev/pp_decryption_buffer_dev.h b/ppapi/c/dev/pp_decryption_buffer_dev.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..856788be83e450fde6cee6f53839d06aacebf324 |
--- /dev/null |
+++ b/ppapi/c/dev/pp_decryption_buffer_dev.h |
@@ -0,0 +1,75 @@ |
+/* 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/pp_decryption_buffer_dev.idl modified Mon Aug 6 17:21:57 2012. */ |
+ |
+#ifndef PPAPI_C_DEV_PP_DECRYPTION_BUFFER_DEV_H_ |
+#define PPAPI_C_DEV_PP_DECRYPTION_BUFFER_DEV_H_ |
+ |
+#include "ppapi/c/pp_macros.h" |
+#include "ppapi/c/pp_resource.h" |
+#include "ppapi/c/pp_stdint.h" |
+ |
+/** |
+ * @file |
+ * The data structure for decryption subsample entry. |
+ */ |
+ |
+ |
+/** |
+ * @addtogroup Structs |
+ * @{ |
+ */ |
+struct PP_DecryptionSubsampleEntry_Dev { |
+ uint32_t clear_bytes; |
+ uint32_t cypher_bytes; |
+}; |
+PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_DecryptionSubsampleEntry_Dev, 8); |
+ |
+/** |
+ * The data structure for decryption buffer. |
+ */ |
+struct PP_DecryptionBuffer_Dev { |
+ /** |
+ * Buffer to hold the encrypted data. Should be allocated using the |
+ * PPB_Buffer interface for consistent interprocess behaviour. |
+ */ |
+ PP_Resource data; |
+ /** |
+ * Size of data to be discarded before applying the decryption (in bytes). |
+ */ |
+ uint32_t data_offset; |
+ /** |
+ * Client-specified identifier for the decryption buffer. |
+ */ |
+ uint32_t id; |
+ /** |
+ * Key ID of the decryption buffer. |
+ */ |
+ uint8_t key_id[64]; |
+ uint32_t key_id_size; |
+ /** |
+ * Initialization vector of the decryption buffer. |
+ */ |
+ uint8_t iv[64]; |
+ uint32_t iv_size; |
+ /** |
+ * Checksum of the decryption buffer. |
+ */ |
+ uint8_t checksum[64]; |
+ uint32_t checksum_size; |
+ /** |
+ * Subsamples of the decryption buffer, as specified in Common Encryption. |
+ */ |
+ struct PP_DecryptionSubsampleEntry_Dev subsamples[16]; |
+ uint32_t num_subsamples; |
+}; |
+PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_DecryptionBuffer_Dev, 348); |
+/** |
+ * @} |
+ */ |
+ |
+#endif /* PPAPI_C_DEV_PP_DECRYPTION_BUFFER_DEV_H_ */ |
+ |