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

Side by Side Diff: ppapi/c/private/pp_content_decryptor.h

Issue 10871006: Connect PpapiDecryptor and PluginInstance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix a minor bug happened during code copying. Created 8 years, 3 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
« no previous file with comments | « ppapi/api/private/pp_content_decryptor.idl ('k') | webkit/media/crypto/ppapi_decryptor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 /* From private/pp_content_decryptor.idl modified Thu Aug 16 20:21:00 2012. */ 6 /* From private/pp_content_decryptor.idl modified Fri Aug 24 16:06:47 2012. */
7 7
8 #ifndef PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_ 8 #ifndef PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_
9 #define PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_ 9 #define PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_
10 10
11 #include "ppapi/c/pp_macros.h" 11 #include "ppapi/c/pp_macros.h"
12 #include "ppapi/c/pp_stdint.h" 12 #include "ppapi/c/pp_stdint.h"
13 13
14 /** 14 /**
15 * @file 15 * @file
16 * The <code>PP_DecryptTrackingInfo</code> struct contains necessary information 16 * The <code>PP_DecryptTrackingInfo</code> struct contains necessary information
17 * that can be used to associate the decrypted block with a decrypt request 17 * that can be used to associate the decrypted block with a decrypt request
18 * and/or an input block. 18 * and/or an input block.
19 */ 19 */
20 20
21 21
22 /** 22 /**
23 * @addtogroup Structs 23 * @addtogroup Structs
24 * @{ 24 * @{
25 */ 25 */
26 struct PP_DecryptTrackingInfo { 26 struct PP_DecryptTrackingInfo {
27 /** 27 /**
28 * Client-specified identifier for the associated decrypt request. By using 28 * Client-specified identifier for the associated decrypt request. By using
29 * this value, the client can associate the decrypted block with a decryption 29 * this value, the client can associate the decrypted block with a decryption
30 * request. 30 * request.
31 */ 31 */
32 uint64_t request_id; 32 uint32_t request_id;
33 /**
34 * 4-byte padding to make the size of <code>PP_DecryptTrackingInfo</code>
35 * a multiple of 8 bytes and make sure |timestamp| starts on 8-byte boundary.
36 * The value of this field should not be used.
37 */
38 uint32_t padding;
33 /** 39 /**
34 * Timestamp in microseconds of the associated block. By using this value, 40 * Timestamp in microseconds of the associated block. By using this value,
35 * the client can associate the decrypted (and decoded) data with an input 41 * the client can associate the decrypted (and decoded) data with an input
36 * block. This is needed because buffers may be delivered out of order and 42 * block. This is needed because buffers may be delivered out of order and
37 * not in response to the <code>request_id</code> they were provided with. 43 * not in response to the <code>request_id</code> they were provided with.
38 */ 44 */
39 int64_t timestamp; 45 int64_t timestamp;
40 }; 46 };
41 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_DecryptTrackingInfo, 16); 47 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_DecryptTrackingInfo, 16);
42 48
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 */ 175 */
170 uint32_t padding; 176 uint32_t padding;
171 }; 177 };
172 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_DecryptedBlockInfo, 24); 178 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_DecryptedBlockInfo, 24);
173 /** 179 /**
174 * @} 180 * @}
175 */ 181 */
176 182
177 #endif /* PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_ */ 183 #endif /* PPAPI_C_PRIVATE_PP_CONTENT_DECRYPTOR_H_ */
178 184
OLDNEW
« no previous file with comments | « ppapi/api/private/pp_content_decryptor.idl ('k') | webkit/media/crypto/ppapi_decryptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698