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

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

Issue 11477002: Fix in process PPAPI decryption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Run generator.py on a linux box, and cross fingers...? Created 8 years 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
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 Dec 4 10:30:29 2012. 7 * modified Mon Dec 10 13:46:33 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"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 void (*KeyError)(PP_Instance instance, 141 void (*KeyError)(PP_Instance instance,
142 struct PP_Var key_system, 142 struct PP_Var key_system,
143 struct PP_Var session_id, 143 struct PP_Var session_id,
144 int32_t media_error, 144 int32_t media_error,
145 int32_t system_code); 145 int32_t system_code);
146 /** 146 /**
147 * Called after the <code>Decrypt()</code> method on the 147 * Called after the <code>Decrypt()</code> method on the
148 * <code>PPP_ContentDecryptor_Private</code> interface completes to 148 * <code>PPP_ContentDecryptor_Private</code> interface completes to
149 * deliver decrypted_block to the browser for decoding and rendering. 149 * deliver decrypted_block to the browser for decoding and rendering.
150 * 150 *
151 * The plugin must not hold a reference to the encrypted buffer resource
152 * provided to <code>Decrypt()</code> when it calls this method. The browser
153 * will reuse the buffer in a subsequent <code>Decrypt()</code> call.
154 *
151 * @param[in] decrypted_block A <code>PP_Resource</code> corresponding to a 155 * @param[in] decrypted_block A <code>PP_Resource</code> corresponding to a
152 * <code>PPB_Buffer_Dev</code> resource that contains a decrypted data 156 * <code>PPB_Buffer_Dev</code> resource that contains a decrypted data
153 * block. 157 * block.
154 * 158 *
155 * @param[in] decrypted_block_info A <code>PP_DecryptedBlockInfo</code> that 159 * @param[in] decrypted_block_info A <code>PP_DecryptedBlockInfo</code> that
156 * contains the result code and tracking info associated with the 160 * contains the result code and tracking info associated with the
157 * <code>decrypted_block</code>. 161 * <code>decrypted_block</code>.
158 */ 162 */
159 void (*DeliverBlock)( 163 void (*DeliverBlock)(
160 PP_Instance instance, 164 PP_Instance instance,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 * <code>ResetDecoder()</code>. 212 * <code>ResetDecoder()</code>.
209 */ 213 */
210 void (*DecoderResetDone)(PP_Instance instance, 214 void (*DecoderResetDone)(PP_Instance instance,
211 PP_DecryptorStreamType decoder_type, 215 PP_DecryptorStreamType decoder_type,
212 uint32_t request_id); 216 uint32_t request_id);
213 /** 217 /**
214 * Called after the <code>DecryptAndDecode()</code> method on the 218 * Called after the <code>DecryptAndDecode()</code> method on the
215 * <code>PPP_ContentDecryptor_Private</code> interface completes to deliver 219 * <code>PPP_ContentDecryptor_Private</code> interface completes to deliver
216 * a decrypted and decoded video frame to the browser for rendering. 220 * a decrypted and decoded video frame to the browser for rendering.
217 * 221 *
222 * The plugin must not hold a reference to the encrypted buffer resource
223 * provided to <code>DecryptAndDecode()</code> when it calls this method. The
224 * browser will reuse the buffer in a subsequent
225 * <code>DecryptAndDecode()</code> call.
226 *
218 * @param[in] decrypted_frame A <code>PP_Resource</code> corresponding to a 227 * @param[in] decrypted_frame A <code>PP_Resource</code> corresponding to a
219 * <code>PPB_Buffer_Dev</code> resource that contains a video frame. 228 * <code>PPB_Buffer_Dev</code> resource that contains a video frame.
220 * 229 *
221 * @param[in] decrypted_frame_info A <code>PP_DecryptedFrameInfo</code> that 230 * @param[in] decrypted_frame_info A <code>PP_DecryptedFrameInfo</code> that
222 * contains the result code, tracking info, and buffer format associated with 231 * contains the result code, tracking info, and buffer format associated with
223 * <code>decrypted_frame</code>. 232 * <code>decrypted_frame</code>.
224 */ 233 */
225 void (*DeliverFrame)( 234 void (*DeliverFrame)(
226 PP_Instance instance, 235 PP_Instance instance,
227 PP_Resource decrypted_frame, 236 PP_Resource decrypted_frame,
228 const struct PP_DecryptedFrameInfo* decrypted_frame_info); 237 const struct PP_DecryptedFrameInfo* decrypted_frame_info);
229 /** 238 /**
230 * Called after the <code>DecryptAndDecode()</code> method on the 239 * Called after the <code>DecryptAndDecode()</code> method on the
231 * <code>PPP_ContentDecryptor_Private</code> interface completes to 240 * <code>PPP_ContentDecryptor_Private</code> interface completes to deliver
232 * deliver a buffer of decrypted and decoded audio samples to the browser for 241 * a buffer of decrypted and decoded audio samples to the browser for
233 * rendering. 242 * rendering.
234 * 243 *
244 * The plugin must not hold a reference to the encrypted buffer resource
245 * provided to <code>DecryptAndDecode()</code> when it calls this method. The
246 * browser will reuse the buffer in a subsequent
247 * <code>DecryptAndDecode()</code> call.
248 *
235 * <code>audio_frames</code> can contain multiple audio output buffers. Each 249 * <code>audio_frames</code> can contain multiple audio output buffers. Each
236 * buffer is serialized in this format: 250 * buffer is serialized in this format:
237 * 251 *
238 * |<------------------- serialized audio buffer ------------------->| 252 * |<------------------- serialized audio buffer ------------------->|
239 * | int64_t timestamp | int64_t length | length bytes of audio data | 253 * | int64_t timestamp | int64_t length | length bytes of audio data |
240 * 254 *
241 * For example, with three audio output buffers, |audio_frames| will look 255 * For example, with three audio output buffers, |audio_frames| will look
242 * like this: 256 * like this:
243 * 257 *
244 * |<---------------- audio_frames ------------------>| 258 * |<---------------- audio_frames ------------------>|
(...skipping 13 matching lines...) Expand all
258 const struct PP_DecryptedBlockInfo* decrypted_block_info); 272 const struct PP_DecryptedBlockInfo* decrypted_block_info);
259 }; 273 };
260 274
261 typedef struct PPB_ContentDecryptor_Private_0_6 PPB_ContentDecryptor_Private; 275 typedef struct PPB_ContentDecryptor_Private_0_6 PPB_ContentDecryptor_Private;
262 /** 276 /**
263 * @} 277 * @}
264 */ 278 */
265 279
266 #endif /* PPAPI_C_PRIVATE_PPB_CONTENT_DECRYPTOR_PRIVATE_H_ */ 280 #endif /* PPAPI_C_PRIVATE_PPB_CONTENT_DECRYPTOR_PRIVATE_H_ */
267 281
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698