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

Side by Side Diff: ppapi/c/dev/pp_decryption_buffer_dev.h

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 /* From dev/pp_decryption_buffer_dev.idl modified Mon Aug 6 17:21:57 2012. */
7
8 #ifndef PPAPI_C_DEV_PP_DECRYPTION_BUFFER_DEV_H_
9 #define PPAPI_C_DEV_PP_DECRYPTION_BUFFER_DEV_H_
10
11 #include "ppapi/c/pp_macros.h"
12 #include "ppapi/c/pp_resource.h"
13 #include "ppapi/c/pp_stdint.h"
14
15 /**
16 * @file
17 * The data structure for decryption subsample entry.
18 */
19
20
21 /**
22 * @addtogroup Structs
23 * @{
24 */
25 struct PP_DecryptionSubsampleEntry_Dev {
26 uint32_t clear_bytes;
27 uint32_t cypher_bytes;
28 };
29 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_DecryptionSubsampleEntry_Dev, 8);
30
31 /**
32 * The data structure for decryption buffer.
33 */
34 struct PP_DecryptionBuffer_Dev {
35 /**
36 * Buffer to hold the encrypted data. Should be allocated using the
37 * PPB_Buffer interface for consistent interprocess behaviour.
38 */
39 PP_Resource data;
40 /**
41 * Size of data to be discarded before applying the decryption (in bytes).
42 */
43 uint32_t data_offset;
44 /**
45 * Client-specified identifier for the decryption buffer.
46 */
47 uint32_t id;
48 /**
49 * Key ID of the decryption buffer.
50 */
51 uint8_t key_id[64];
52 uint32_t key_id_size;
53 /**
54 * Initialization vector of the decryption buffer.
55 */
56 uint8_t iv[64];
57 uint32_t iv_size;
58 /**
59 * Checksum of the decryption buffer.
60 */
61 uint8_t checksum[64];
62 uint32_t checksum_size;
63 /**
64 * Subsamples of the decryption buffer, as specified in Common Encryption.
65 */
66 struct PP_DecryptionSubsampleEntry_Dev subsamples[16];
67 uint32_t num_subsamples;
68 };
69 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_DecryptionBuffer_Dev, 348);
70 /**
71 * @}
72 */
73
74 #endif /* PPAPI_C_DEV_PP_DECRYPTION_BUFFER_DEV_H_ */
75
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698