OLD | NEW |
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 /** | 6 /** |
7 * The <code>PP_DecryptTrackingInfo</code> struct contains necessary information | 7 * The <code>PP_DecryptTrackingInfo</code> struct contains necessary information |
8 * that can be used to associate the decrypted block with a decrypt request | 8 * that can be used to associate the decrypted block with a decrypt request |
9 * and/or an input block. | 9 * and/or an input block. |
10 */ | 10 */ |
11 [assert_size(16)] | 11 [assert_size(16)] |
12 struct PP_DecryptTrackingInfo { | 12 struct PP_DecryptTrackingInfo { |
13 /** | 13 /** |
14 * Client-specified identifier for the associated decrypt request. By using | 14 * Client-specified identifier for the associated decrypt request. By using |
15 * this value, the client can associate the decrypted block with a decryption | 15 * this value, the client can associate the decrypted block with a decryption |
16 * request. | 16 * request. |
17 */ | 17 */ |
18 uint64_t request_id; | 18 uint32_t request_id; |
| 19 |
| 20 /** |
| 21 * 4-byte padding to make the size of <code>PP_DecryptTrackingInfo</code> |
| 22 * a multiple of 8 bytes and make sure |timestamp| starts on 8-byte boundary. |
| 23 * The value of this field should not be used. |
| 24 */ |
| 25 uint32_t padding; |
19 | 26 |
20 /** | 27 /** |
21 * Timestamp in microseconds of the associated block. By using this value, | 28 * Timestamp in microseconds of the associated block. By using this value, |
22 * the client can associate the decrypted (and decoded) data with an input | 29 * the client can associate the decrypted (and decoded) data with an input |
23 * block. This is needed because buffers may be delivered out of order and | 30 * block. This is needed because buffers may be delivered out of order and |
24 * not in response to the <code>request_id</code> they were provided with. | 31 * not in response to the <code>request_id</code> they were provided with. |
25 */ | 32 */ |
26 int64_t timestamp; | 33 int64_t timestamp; |
27 }; | 34 }; |
28 | 35 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 * Result of the decryption (and/or decoding) operation. | 150 * Result of the decryption (and/or decoding) operation. |
144 */ | 151 */ |
145 PP_DecryptResult result; | 152 PP_DecryptResult result; |
146 | 153 |
147 /** | 154 /** |
148 * 4-byte padding to make the size of <code>PP_DecryptedBlockInfo</code> | 155 * 4-byte padding to make the size of <code>PP_DecryptedBlockInfo</code> |
149 * a multiple of 8 bytes. The value of this field should not be used. | 156 * a multiple of 8 bytes. The value of this field should not be used. |
150 */ | 157 */ |
151 uint32_t padding; | 158 uint32_t padding; |
152 }; | 159 }; |
OLD | NEW |