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 /* From private/ppb_content_decryptor_private.idl, | 6 /* From private/ppb_content_decryptor_private.idl, |
7 * modified Tue Aug 14 11:53:03 2012. | 7 * modified Wed Aug 15 10:56:31 2012. |
8 */ | 8 */ |
9 | 9 |
10 #ifndef PPAPI_C_PRIVATE_PPB_CONTENT_DECRYPTOR_PRIVATE_H_ | 10 #ifndef PPAPI_C_PRIVATE_PPB_CONTENT_DECRYPTOR_PRIVATE_H_ |
11 #define PPAPI_C_PRIVATE_PPB_CONTENT_DECRYPTOR_PRIVATE_H_ | 11 #define PPAPI_C_PRIVATE_PPB_CONTENT_DECRYPTOR_PRIVATE_H_ |
12 | 12 |
13 #include "ppapi/c/pp_bool.h" | 13 #include "ppapi/c/pp_bool.h" |
14 #include "ppapi/c/pp_instance.h" | 14 #include "ppapi/c/pp_instance.h" |
15 #include "ppapi/c/pp_macros.h" | 15 #include "ppapi/c/pp_macros.h" |
16 #include "ppapi/c/pp_resource.h" | 16 #include "ppapi/c/pp_resource.h" |
17 #include "ppapi/c/pp_stdint.h" | 17 #include "ppapi/c/pp_stdint.h" |
18 #include "ppapi/c/pp_var.h" | 18 #include "ppapi/c/pp_var.h" |
| 19 #include "ppapi/c/private/pp_decrypt_config.h" |
19 | 20 |
20 #define PPB_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_1 \ | 21 #define PPB_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_1 \ |
21 "PPB_ContentDecryptor_Private;0.1" | 22 "PPB_ContentDecryptor_Private;0.1" |
22 #define PPB_CONTENTDECRYPTOR_PRIVATE_INTERFACE \ | 23 #define PPB_CONTENTDECRYPTOR_PRIVATE_INTERFACE \ |
23 PPB_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_1 | 24 PPB_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_1 |
24 | 25 |
25 /** | 26 /** |
26 * @file | 27 * @file |
27 * This file defines the <code>PPB_ContentDecryptor_Private</code> | 28 * This file defines the <code>PPB_ContentDecryptor_Private</code> |
28 * interface. Note: This is a special interface, only to be used for Content | 29 * interface. Note: This is a special interface, only to be used for Content |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 int32_t system_code); | 144 int32_t system_code); |
144 /** | 145 /** |
145 * Called after the <code>Decrypt()</code> method on the | 146 * Called after the <code>Decrypt()</code> method on the |
146 * <code>PPP_ContentDecryptor_Private</code> interface completes to | 147 * <code>PPP_ContentDecryptor_Private</code> interface completes to |
147 * deliver decrypted_block to the browser for decoding and rendering. | 148 * deliver decrypted_block to the browser for decoding and rendering. |
148 * | 149 * |
149 * @param[in] decrypted_block A <code>PP_Resource</code> corresponding to a | 150 * @param[in] decrypted_block A <code>PP_Resource</code> corresponding to a |
150 * <code>PPB_Buffer_Dev</code> resource that contains a decrypted data | 151 * <code>PPB_Buffer_Dev</code> resource that contains a decrypted data |
151 * block. | 152 * block. |
152 * | 153 * |
153 * @param[in] request_id A unique value the browser can use to associate | 154 * @param[in] tracking_info Tracking info the browser can use to associate |
154 * decrypted_block with a decrypt call. | 155 * decrypted_block with a decrypt call and/or an input (encrypted) buffer. |
155 */ | 156 */ |
156 void (*DeliverBlock)(PP_Instance instance, | 157 void (*DeliverBlock)(PP_Instance instance, |
157 PP_Resource decrypted_block, | 158 PP_Resource decrypted_block, |
158 int32_t request_id); | 159 const struct PP_DecryptTrackingInfo* tracking_info); |
159 /** | 160 /** |
160 * Called after the <code>DecryptAndDecode()</code> method on the | 161 * Called after the <code>DecryptAndDecode()</code> method on the |
161 * <code>PPP_ContentDecryptor_Private</code> interface completes to deliver | 162 * <code>PPP_ContentDecryptor_Private</code> interface completes to deliver |
162 * a decrypted and decoded video frame to the browser for rendering. | 163 * a decrypted and decoded video frame to the browser for rendering. |
163 * | 164 * |
164 * @param[in] decrypted_frame A <code>PP_Resource</code> corresponding to a | 165 * @param[in] decrypted_frame A <code>PP_Resource</code> corresponding to a |
165 * <code>PPB_Buffer_Dev</code> resource that contains a video frame. | 166 * <code>PPB_Buffer_Dev</code> resource that contains a video frame. |
166 * | 167 * |
167 * @param[in] request_id A unique value the browser can use to associate | 168 * @param[in] tracking_info Tracking info the browser can use to associate |
168 * decrypted_frame with a decrypt call. | 169 * decrypted_block with a decrypt call and/or an input (encrypted) buffer. |
169 */ | 170 */ |
170 void (*DeliverFrame)(PP_Instance instance, | 171 void (*DeliverFrame)(PP_Instance instance, |
171 PP_Resource decrypted_frame, | 172 PP_Resource decrypted_frame, |
172 int32_t request_id); | 173 const struct PP_DecryptTrackingInfo* tracking_info); |
173 /** | 174 /** |
174 * Called after the <code>DecryptAndDecode()</code> method on the | 175 * Called after the <code>DecryptAndDecode()</code> method on the |
175 * <code>PPP_ContentDecryptor_Private</code> interface completes to | 176 * <code>PPP_ContentDecryptor_Private</code> interface completes to |
176 * deliver a buffer of decrypted and decoded audio samples to the browser for | 177 * deliver a buffer of decrypted and decoded audio samples to the browser for |
177 * rendering. | 178 * rendering. |
178 * | 179 * |
179 * @param[in] decrypted_samples A <code>PP_Resource</code> corresponding to a | 180 * @param[in] decrypted_samples A <code>PP_Resource</code> corresponding to a |
180 * <code>PPB_Buffer_Dev</code> resource that contains a decrypted buffer | 181 * <code>PPB_Buffer_Dev</code> resource that contains a decrypted buffer |
181 * of decoded audio samples. | 182 * of decoded audio samples. |
182 * | 183 * |
183 * @param[in] request_id A unique value the browser can use to associate | 184 * @param[in] tracking_info Tracking info the browser can use to associate |
184 * decrypted_samples with a decrypt call. | 185 * decrypted_block with a decrypt call and/or an input (encrypted) buffer. |
185 */ | 186 */ |
186 void (*DeliverSamples)(PP_Instance instance, | 187 void (*DeliverSamples)(PP_Instance instance, |
187 PP_Resource decrypted_samples, | 188 PP_Resource decrypted_samples, |
188 int32_t request_id); | 189 const struct PP_DecryptTrackingInfo* tracking_info); |
189 }; | 190 }; |
190 | 191 |
191 typedef struct PPB_ContentDecryptor_Private_0_1 PPB_ContentDecryptor_Private; | 192 typedef struct PPB_ContentDecryptor_Private_0_1 PPB_ContentDecryptor_Private; |
192 /** | 193 /** |
193 * @} | 194 * @} |
194 */ | 195 */ |
195 | 196 |
196 #endif /* PPAPI_C_PRIVATE_PPB_CONTENT_DECRYPTOR_PRIVATE_H_ */ | 197 #endif /* PPAPI_C_PRIVATE_PPB_CONTENT_DECRYPTOR_PRIVATE_H_ */ |
197 | 198 |
OLD | NEW |