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

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

Issue 10854209: Modify the PPAPI CDM interface to pass more info. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « ppapi/c/private/pp_content_decryptor.h ('k') | ppapi/c/private/ppp_content_decryptor_private.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/ppb_content_decryptor_private.idl, 6 /* From private/ppb_content_decryptor_private.idl,
7 * modified Tue Aug 14 11:53:03 2012. 7 * modified Thu Aug 16 20:19:22 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_content_decryptor.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
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] decrypted_block_info A <code>PP_DecryptedBlockInfo</code> that
154 * decrypted_block with a decrypt call. 155 * contains the tracking info and result code associated with the
156 * <code>decrypted_block</code>.
155 */ 157 */
156 void (*DeliverBlock)(PP_Instance instance, 158 void (*DeliverBlock)(
157 PP_Resource decrypted_block, 159 PP_Instance instance,
158 int32_t request_id); 160 PP_Resource decrypted_block,
161 const struct PP_DecryptedBlockInfo* decrypted_block_info);
159 /** 162 /**
160 * Called after the <code>DecryptAndDecode()</code> method on the 163 * Called after the <code>DecryptAndDecode()</code> method on the
161 * <code>PPP_ContentDecryptor_Private</code> interface completes to deliver 164 * <code>PPP_ContentDecryptor_Private</code> interface completes to deliver
162 * a decrypted and decoded video frame to the browser for rendering. 165 * a decrypted and decoded video frame to the browser for rendering.
163 * 166 *
164 * @param[in] decrypted_frame A <code>PP_Resource</code> corresponding to a 167 * @param[in] decrypted_frame A <code>PP_Resource</code> corresponding to a
165 * <code>PPB_Buffer_Dev</code> resource that contains a video frame. 168 * <code>PPB_Buffer_Dev</code> resource that contains a video frame.
166 * 169 *
167 * @param[in] request_id A unique value the browser can use to associate 170 * @param[in] decrypted_block_info A <code>PP_DecryptedBlockInfo</code> that
168 * decrypted_frame with a decrypt call. 171 * contains the tracking info and result code associated with the
172 * <code>decrypted_block</code>.
169 */ 173 */
170 void (*DeliverFrame)(PP_Instance instance, 174 void (*DeliverFrame)(
171 PP_Resource decrypted_frame, 175 PP_Instance instance,
172 int32_t request_id); 176 PP_Resource decrypted_frame,
177 const struct PP_DecryptedBlockInfo* decrypted_block_info);
173 /** 178 /**
174 * Called after the <code>DecryptAndDecode()</code> method on the 179 * Called after the <code>DecryptAndDecode()</code> method on the
175 * <code>PPP_ContentDecryptor_Private</code> interface completes to 180 * <code>PPP_ContentDecryptor_Private</code> interface completes to
176 * deliver a buffer of decrypted and decoded audio samples to the browser for 181 * deliver a buffer of decrypted and decoded audio samples to the browser for
177 * rendering. 182 * rendering.
178 * 183 *
179 * @param[in] decrypted_samples A <code>PP_Resource</code> corresponding to a 184 * @param[in] decrypted_samples A <code>PP_Resource</code> corresponding to a
180 * <code>PPB_Buffer_Dev</code> resource that contains a decrypted buffer 185 * <code>PPB_Buffer_Dev</code> resource that contains a decrypted buffer
181 * of decoded audio samples. 186 * of decoded audio samples.
182 * 187 *
183 * @param[in] request_id A unique value the browser can use to associate 188 * @param[in] decrypted_block_info A <code>PP_DecryptedBlockInfo</code> that
184 * decrypted_samples with a decrypt call. 189 * contains the tracking info and result code associated with the
190 * <code>decrypted_block</code>.
185 */ 191 */
186 void (*DeliverSamples)(PP_Instance instance, 192 void (*DeliverSamples)(
187 PP_Resource decrypted_samples, 193 PP_Instance instance,
188 int32_t request_id); 194 PP_Resource decrypted_samples,
195 const struct PP_DecryptedBlockInfo* decrypted_block_info);
189 }; 196 };
190 197
191 typedef struct PPB_ContentDecryptor_Private_0_1 PPB_ContentDecryptor_Private; 198 typedef struct PPB_ContentDecryptor_Private_0_1 PPB_ContentDecryptor_Private;
192 /** 199 /**
193 * @} 200 * @}
194 */ 201 */
195 202
196 #endif /* PPAPI_C_PRIVATE_PPB_CONTENT_DECRYPTOR_PRIVATE_H_ */ 203 #endif /* PPAPI_C_PRIVATE_PPB_CONTENT_DECRYPTOR_PRIVATE_H_ */
197 204
OLDNEW
« no previous file with comments | « ppapi/c/private/pp_content_decryptor.h ('k') | ppapi/c/private/ppp_content_decryptor_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698