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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
4 */
5
6 /**
7 * The data structure for decryption subsample entry.
8 */
9 [assert_size(8)]
10 struct PP_DecryptionSubsampleEntry_Dev {
11 uint32_t clear_bytes;
12 uint32_t cypher_bytes;
13 };
14
15 /**
16 * 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
17 */
18 [assert_size(348)]
19 struct PP_DecryptionBuffer_Dev {
xhwang 2012/08/07 00:53:48 dmichael@: this is what I talked about offline. It
20 /**
21 * Buffer to hold the encrypted data. Should be allocated using the
22 * PPB_Buffer interface for consistent interprocess behaviour.
23 */
24 PP_Resource data;
dmichael (off chromium) 2012/08/09 16:24:52 I think everything else is okay, but I'd rather yo
25
26 /**
27 * Size of data to be discarded before applying the decryption (in bytes).
28 */
29 uint32_t data_offset;
30
31 /**
32 * Client-specified identifier for the decryption buffer.
33 */
34 uint32_t id;
35
36 /**
37 * Key ID of the decryption buffer.
38 */
39 uint8_t[64] key_id;
40 uint32_t key_id_size;
41
42 /**
43 * Initialization vector of the decryption buffer.
44 */
45 uint8_t[64] iv;
46 uint32_t iv_size;
47
48 /**
49 * Checksum of the decryption buffer.
50 */
51 uint8_t[64] checksum;
52 uint32_t checksum_size;
53
54 /**
55 * Subsamples of the decryption buffer, as specified in Common Encryption.
56 */
57 PP_DecryptionSubsampleEntry_Dev[16] subsamples;
58 uint32_t num_subsamples;
59 };
OLDNEW
« 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