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

Side by Side Diff: ppapi/api/private/ppb_content_decryptor_private.idl

Issue 10857027: Add content decryptor related structs and update PP{P|B}_ContentDecryptor_Private. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resolve comments. 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
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 /** 6 /**
7 * This file defines the <code>PPB_ContentDecryptor_Private</code> 7 * This file defines the <code>PPB_ContentDecryptor_Private</code>
8 * interface. Note: This is a special interface, only to be used for Content 8 * interface. Note: This is a special interface, only to be used for Content
9 * Decryption Modules, not normal plugins. 9 * Decryption Modules, not normal plugins.
10 */ 10 */
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 /** 130 /**
131 * Called after the <code>Decrypt()</code> method on the 131 * Called after the <code>Decrypt()</code> method on the
132 * <code>PPP_ContentDecryptor_Private</code> interface completes to 132 * <code>PPP_ContentDecryptor_Private</code> interface completes to
133 * deliver decrypted_block to the browser for decoding and rendering. 133 * deliver decrypted_block to the browser for decoding and rendering.
134 * 134 *
135 * @param[in] decrypted_block A <code>PP_Resource</code> corresponding to a 135 * @param[in] decrypted_block A <code>PP_Resource</code> corresponding to a
136 * <code>PPB_Buffer_Dev</code> resource that contains a decrypted data 136 * <code>PPB_Buffer_Dev</code> resource that contains a decrypted data
137 * block. 137 * block.
138 * 138 *
139 * @param[in] request_id A unique value the browser can use to associate 139 * @param[in] tracking_info Tracking info the browser can use to associate
140 * decrypted_block with a decrypt call. 140 * decrypted_block with a decrypt call and/or an input (encrypted) buffer.
141 */ 141 */
142 void DeliverBlock( 142 void DeliverBlock(
143 [in] PP_Instance instance, 143 [in] PP_Instance instance,
144 [in] PP_Resource decrypted_block, 144 [in] PP_Resource decrypted_block,
145 [in] int32_t request_id); 145 [in] PP_DecryptTrackingInfo tracking_info);
146 146
147 /** 147 /**
148 * Called after the <code>DecryptAndDecode()</code> method on the 148 * Called after the <code>DecryptAndDecode()</code> method on the
149 * <code>PPP_ContentDecryptor_Private</code> interface completes to deliver 149 * <code>PPP_ContentDecryptor_Private</code> interface completes to deliver
150 * a decrypted and decoded video frame to the browser for rendering. 150 * a decrypted and decoded video frame to the browser for rendering.
151 * 151 *
152 * @param[in] decrypted_frame A <code>PP_Resource</code> corresponding to a 152 * @param[in] decrypted_frame A <code>PP_Resource</code> corresponding to a
153 * <code>PPB_Buffer_Dev</code> resource that contains a video frame. 153 * <code>PPB_Buffer_Dev</code> resource that contains a video frame.
154 * 154 *
155 * @param[in] request_id A unique value the browser can use to associate 155 * @param[in] tracking_info Tracking info the browser can use to associate
156 * decrypted_frame with a decrypt call. 156 * decrypted_block with a decrypt call and/or an input (encrypted) buffer.
157 */ 157 */
158 void DeliverFrame( 158 void DeliverFrame(
159 [in] PP_Instance instance, 159 [in] PP_Instance instance,
160 [in] PP_Resource decrypted_frame, 160 [in] PP_Resource decrypted_frame,
161 [in] int32_t request_id); 161 [in] PP_DecryptTrackingInfo tracking_info);
162 162
163 /** 163 /**
164 * Called after the <code>DecryptAndDecode()</code> method on the 164 * Called after the <code>DecryptAndDecode()</code> method on the
165 * <code>PPP_ContentDecryptor_Private</code> interface completes to 165 * <code>PPP_ContentDecryptor_Private</code> interface completes to
166 * deliver a buffer of decrypted and decoded audio samples to the browser for 166 * deliver a buffer of decrypted and decoded audio samples to the browser for
167 * rendering. 167 * rendering.
168 * 168 *
169 * @param[in] decrypted_samples A <code>PP_Resource</code> corresponding to a 169 * @param[in] decrypted_samples A <code>PP_Resource</code> corresponding to a
170 * <code>PPB_Buffer_Dev</code> resource that contains a decrypted buffer 170 * <code>PPB_Buffer_Dev</code> resource that contains a decrypted buffer
171 * of decoded audio samples. 171 * of decoded audio samples.
172 * 172 *
173 * @param[in] request_id A unique value the browser can use to associate 173 * @param[in] tracking_info Tracking info the browser can use to associate
174 * decrypted_samples with a decrypt call. 174 * decrypted_block with a decrypt call and/or an input (encrypted) buffer.
175 */ 175 */
176 void DeliverSamples( 176 void DeliverSamples(
177 [in] PP_Instance instance, 177 [in] PP_Instance instance,
178 [in] PP_Resource decrypted_samples, 178 [in] PP_Resource decrypted_samples,
179 [in] int32_t request_id); 179 [in] PP_DecryptTrackingInfo tracking_info);
180 }; 180 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698