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

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

Issue 10836038: Call CDMWrapper from PpapiDecryptor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add PP_DecryptionBuffer_Dev and update Decrypt() PPP call. Created 8 years, 4 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/api/dev/ppb_content_decryptor_dev.idl » ('j') | webkit/media/crypto/ppapi_decryptor.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/dev/pp_decryption_buffer_dev.idl
diff --git a/ppapi/api/dev/pp_decryption_buffer_dev.idl b/ppapi/api/dev/pp_decryption_buffer_dev.idl
new file mode 100644
index 0000000000000000000000000000000000000000..38bff3e64ad5dc8d79f3902b379bb1df059306f9
--- /dev/null
+++ b/ppapi/api/dev/pp_decryption_buffer_dev.idl
@@ -0,0 +1,59 @@
+/* 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.
+ */
+
+/**
+ * The data structure for decryption subsample entry.
+ */
+[assert_size(8)]
+struct PP_DecryptionSubsampleEntry_Dev {
+ uint32_t clear_bytes;
+ uint32_t cypher_bytes;
+};
+
+/**
+ * The data structure for decryption buffer.
dmichael (off chromium) 2012/08/09 16:24:52 This doesn't tell me any more than the class name
+ */
+[assert_size(348)]
+struct PP_DecryptionBuffer_Dev {
xhwang 2012/08/07 00:53:48 dmichael@: this is what I talked about offline. It
+ /**
+ * Buffer to hold the encrypted data. Should be allocated using the
+ * PPB_Buffer interface for consistent interprocess behaviour.
+ */
+ PP_Resource data;
dmichael (off chromium) 2012/08/09 16:24:52 I think everything else is okay, but I'd rather yo
+
+ /**
+ * 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[64] key_id;
+ uint32_t key_id_size;
+
+ /**
+ * Initialization vector of the decryption buffer.
+ */
+ uint8_t[64] iv;
+ uint32_t iv_size;
+
+ /**
+ * Checksum of the decryption buffer.
+ */
+ uint8_t[64] checksum;
+ uint32_t checksum_size;
+
+ /**
+ * Subsamples of the decryption buffer, as specified in Common Encryption.
+ */
+ PP_DecryptionSubsampleEntry_Dev[16] subsamples;
+ uint32_t num_subsamples;
+};
« no previous file with comments | « no previous file | ppapi/api/dev/ppb_content_decryptor_dev.idl » ('j') | webkit/media/crypto/ppapi_decryptor.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698