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 /** | 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
138 * | 138 * |
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 /** |
xhwang
2012/10/11 03:53:35
Ordering of functions: Can we move these two new f
Tom Finegan
2012/10/12 05:01:56
Talked about this offline: Keeping this order.
| |
149 * Called after the <code>DeinitializeDecoder()</code> method on the | |
150 * <code>PPP_ContentDecryptor_Private</code> interface completes to report | |
151 * decoder de-initialization completion to the browser. | |
152 * | |
153 * @param[in] decoder_type The <code>PP_StreamType</code> passed to | |
154 *<code>DeinitializeDecoder()</code>. | |
xhwang
2012/10/11 03:53:35
space before <code>
Tom Finegan
2012/10/12 05:01:56
Done.
| |
155 * | |
156 * @param[in] request_id The <code>request_id</code> value passed to | |
157 * <code>DeinitializeDecoder()</code>. | |
158 */ | |
159 void DecoderDeinitializeDone( | |
160 [in] PP_Instance instance, | |
161 [in] PP_StreamType decoder_type, | |
162 [in] uint32_t request_id); | |
163 | |
164 /** | |
165 * Called after the <code>ResetDecoder()</code> method on the | |
166 * <code>PPP_ContentDecryptor_Private</code> interface completes to report | |
167 * decoder reset completion to the browser. | |
168 * | |
169 * @param[in] decoder_type The <code>PP_StreamType</code> passed to | |
170 *<code>ResetDecoder()</code>. | |
xhwang
2012/10/11 03:53:35
ditto
Tom Finegan
2012/10/12 05:01:56
Done.
| |
171 * | |
172 * @param[in] request_id The <code>request_id</code> value passed to | |
173 * <code>ResetDecoder()</code>. | |
174 */ | |
175 void DecoderResetDone( | |
176 [in] PP_Instance instance, | |
177 [in] PP_StreamType decoder_type, | |
178 [in] uint32_t request_id); | |
179 | |
180 /** | |
149 * Called after the <code>DecryptAndDecode()</code> method on the | 181 * Called after the <code>DecryptAndDecode()</code> method on the |
150 * <code>PPP_ContentDecryptor_Private</code> interface completes to deliver | 182 * <code>PPP_ContentDecryptor_Private</code> interface completes to deliver |
151 * a decrypted and decoded video frame to the browser for rendering. | 183 * a decrypted and decoded video frame to the browser for rendering. |
152 * | 184 * |
153 * @param[in] decrypted_frame A <code>PP_Resource</code> corresponding to a | 185 * @param[in] decrypted_frame A <code>PP_Resource</code> corresponding to a |
154 * <code>PPB_Buffer_Dev</code> resource that contains a video frame. | 186 * <code>PPB_Buffer_Dev</code> resource that contains a video frame. |
155 * | 187 * |
156 * @param[in] decrypted_frame_info A <code>PP_DecryptedFrameInfo</code> that | 188 * @param[in] decrypted_frame_info A <code>PP_DecryptedFrameInfo</code> that |
157 * contains the result code, tracking info, and buffer format associated with | 189 * contains the result code, tracking info, and buffer format associated with |
158 * <code>decrypted_frame</code>. | 190 * <code>decrypted_frame</code>. |
(...skipping 15 matching lines...) Expand all Loading... | |
174 * | 206 * |
175 * @param[in] decrypted_block_info A <code>PP_DecryptedBlockInfo</code> that | 207 * @param[in] decrypted_block_info A <code>PP_DecryptedBlockInfo</code> that |
176 * contains the tracking info and result code associated with the | 208 * contains the tracking info and result code associated with the |
177 * <code>decrypted_block</code>. | 209 * <code>decrypted_block</code>. |
178 */ | 210 */ |
179 void DeliverSamples( | 211 void DeliverSamples( |
180 [in] PP_Instance instance, | 212 [in] PP_Instance instance, |
181 [in] PP_Resource decrypted_samples, | 213 [in] PP_Resource decrypted_samples, |
182 [in] PP_DecryptedBlockInfo decrypted_block_info); | 214 [in] PP_DecryptedBlockInfo decrypted_block_info); |
183 }; | 215 }; |
OLD | NEW |