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

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

Issue 11028087: Add decoder de-initialize and reset to the Pepper CDM API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Finish first pass. Created 8 years, 2 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 */
11 label Chrome { 11 label Chrome {
12 M23 = 0.2 12 M24 = 0.3
13 }; 13 };
14 14
15 /** 15 /**
16 * <code>PPB_ContentDecryptor_Private</code> structure contains the function 16 * <code>PPB_ContentDecryptor_Private</code> structure contains the function
17 * pointers the browser must implement to support plugins implementing the 17 * pointers the browser must implement to support plugins implementing the
18 * <code>PPP_ContentDecryptor_Private</code> interface. This interface provides 18 * <code>PPP_ContentDecryptor_Private</code> interface. This interface provides
19 * browser side support for the Content Decryption Module (CDM) for v0.1 of the 19 * browser side support for the Content Decryption Module (CDM) for v0.1 of the
20 * proposed Encrypted Media Extensions: http://goo.gl/rbdnR 20 * proposed Encrypted Media Extensions: http://goo.gl/rbdnR
21 */ 21 */
22 interface PPB_ContentDecryptor_Private { 22 interface PPB_ContentDecryptor_Private {
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 * @param[in] decrypted_block_info A <code>PP_DecryptedBlockInfo</code> that 139 * @param[in] decrypted_block_info A <code>PP_DecryptedBlockInfo</code> that
140 * contains the result code and tracking info associated with the 140 * contains the result code and tracking info associated with the
141 * <code>decrypted_block</code>. 141 * <code>decrypted_block</code>.
142 */ 142 */
143 void DeliverBlock( 143 void DeliverBlock(
144 [in] PP_Instance instance, 144 [in] PP_Instance instance,
145 [in] PP_Resource decrypted_block, 145 [in] PP_Resource decrypted_block,
146 [in] PP_DecryptedBlockInfo decrypted_block_info); 146 [in] PP_DecryptedBlockInfo decrypted_block_info);
147 147
148 /** 148 /**
149 * Called after the <code>ResetAudioDecoder()</code> or
Ami GONE FROM CHROMIUM 2012/10/09 07:26:38 This CL talks about Audio-related methods that don
Tom Finegan 2012/10/10 00:39:32 Good point. I'll ask Brett once we finish reviewin
150 * <code>ResetVideoDecoder()</code> method on the
151 * <code>PPP_ContentDecryptor_Private</code> interface completes to report
152 * decoder reset completion to the browser.
153 *
154 * @param[in] request_id The <code>request_id</code> value passed to
155 * <code>ResetAudioDecoder</code> or <code>ResetVideoDecoder</code>.
156 */
157 void DecoderReset(
Ami GONE FROM CHROMIUM 2012/10/09 07:25:54 s/Reset/ResetDone/ ? (to clarify observation vs.
xhwang 2012/10/09 16:27:27 These two methods are not needed for now, at least
Ami GONE FROM CHROMIUM 2012/10/09 16:41:05 I'm not sure what you're asking. I thought this wa
xhwang 2012/10/09 18:41:20 Chatted with fischman offline again. We'll need re
Tom Finegan 2012/10/10 00:39:32 The request IDs remain, and this method has been r
158 [in] PP_Instance instance,
159 [in] uint32_t request_id);
160
161 /**
162 * Called after the <code>StopAudioDecoder()</code> or
163 * <code>StopVideoDecoder()</code> method on the
164 * <code>PPP_ContentDecryptor_Private</code> interface completes to report
165 * decoder stop completion to the browser.
166 *
167 * @param[in] request_id The <code>request_id</code> value passed to
168 * <code>StopAudioDecoder</code> or <code>StopVideoDecoder</code>.
169 */
170 void DecoderStopped(
Ami GONE FROM CHROMIUM 2012/10/09 07:25:54 s/Stopped/StopDone/
Tom Finegan 2012/10/10 00:39:32 Done.
171 [in] PP_Instance instance,
172 [in] uint32_t request_id);
173
174 /**
149 * Called after the <code>DecryptAndDecode()</code> method on the 175 * Called after the <code>DecryptAndDecode()</code> method on the
150 * <code>PPP_ContentDecryptor_Private</code> interface completes to deliver 176 * <code>PPP_ContentDecryptor_Private</code> interface completes to deliver
151 * a decrypted and decoded video frame to the browser for rendering. 177 * a decrypted and decoded video frame to the browser for rendering.
152 * 178 *
153 * @param[in] decrypted_frame A <code>PP_Resource</code> corresponding to a 179 * @param[in] decrypted_frame A <code>PP_Resource</code> corresponding to a
154 * <code>PPB_Buffer_Dev</code> resource that contains a video frame. 180 * <code>PPB_Buffer_Dev</code> resource that contains a video frame.
155 * 181 *
156 * @param[in] decrypted_frame_info A <code>PP_DecryptedFrameInfo</code> that 182 * @param[in] decrypted_frame_info A <code>PP_DecryptedFrameInfo</code> that
157 * contains the result code, tracking info, and buffer format associated with 183 * contains the result code, tracking info, and buffer format associated with
158 * <code>decrypted_frame</code>. 184 * <code>decrypted_frame</code>.
(...skipping 15 matching lines...) Expand all
174 * 200 *
175 * @param[in] decrypted_block_info A <code>PP_DecryptedBlockInfo</code> that 201 * @param[in] decrypted_block_info A <code>PP_DecryptedBlockInfo</code> that
176 * contains the tracking info and result code associated with the 202 * contains the tracking info and result code associated with the
177 * <code>decrypted_block</code>. 203 * <code>decrypted_block</code>.
178 */ 204 */
179 void DeliverSamples( 205 void DeliverSamples(
180 [in] PP_Instance instance, 206 [in] PP_Instance instance,
181 [in] PP_Resource decrypted_samples, 207 [in] PP_Resource decrypted_samples,
182 [in] PP_DecryptedBlockInfo decrypted_block_info); 208 [in] PP_DecryptedBlockInfo decrypted_block_info);
183 }; 209 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698