| 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 */ |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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] decrypted_block_info A <code>PP_DecryptedBlockInfo</code> that |
| 140 * decrypted_block with a decrypt call. | 140 * contains the tracking info and result code associated with the |
| 141 * <code>decrypted_block</code>. |
| 141 */ | 142 */ |
| 142 void DeliverBlock( | 143 void DeliverBlock( |
| 143 [in] PP_Instance instance, | 144 [in] PP_Instance instance, |
| 144 [in] PP_Resource decrypted_block, | 145 [in] PP_Resource decrypted_block, |
| 145 [in] int32_t request_id); | 146 [in] PP_DecryptedBlockInfo decrypted_block_info); |
| 146 | 147 |
| 147 /** | 148 /** |
| 148 * Called after the <code>DecryptAndDecode()</code> method on the | 149 * Called after the <code>DecryptAndDecode()</code> method on the |
| 149 * <code>PPP_ContentDecryptor_Private</code> interface completes to deliver | 150 * <code>PPP_ContentDecryptor_Private</code> interface completes to deliver |
| 150 * a decrypted and decoded video frame to the browser for rendering. | 151 * a decrypted and decoded video frame to the browser for rendering. |
| 151 * | 152 * |
| 152 * @param[in] decrypted_frame A <code>PP_Resource</code> corresponding to a | 153 * @param[in] decrypted_frame A <code>PP_Resource</code> corresponding to a |
| 153 * <code>PPB_Buffer_Dev</code> resource that contains a video frame. | 154 * <code>PPB_Buffer_Dev</code> resource that contains a video frame. |
| 154 * | 155 * |
| 155 * @param[in] request_id A unique value the browser can use to associate | 156 * @param[in] decrypted_block_info A <code>PP_DecryptedBlockInfo</code> that |
| 156 * decrypted_frame with a decrypt call. | 157 * contains the tracking info and result code associated with the |
| 158 * <code>decrypted_block</code>. |
| 157 */ | 159 */ |
| 158 void DeliverFrame( | 160 void DeliverFrame( |
| 159 [in] PP_Instance instance, | 161 [in] PP_Instance instance, |
| 160 [in] PP_Resource decrypted_frame, | 162 [in] PP_Resource decrypted_frame, |
| 161 [in] int32_t request_id); | 163 [in] PP_DecryptedBlockInfo decrypted_block_info); |
| 162 | 164 |
| 163 /** | 165 /** |
| 164 * Called after the <code>DecryptAndDecode()</code> method on the | 166 * Called after the <code>DecryptAndDecode()</code> method on the |
| 165 * <code>PPP_ContentDecryptor_Private</code> interface completes to | 167 * <code>PPP_ContentDecryptor_Private</code> interface completes to |
| 166 * deliver a buffer of decrypted and decoded audio samples to the browser for | 168 * deliver a buffer of decrypted and decoded audio samples to the browser for |
| 167 * rendering. | 169 * rendering. |
| 168 * | 170 * |
| 169 * @param[in] decrypted_samples A <code>PP_Resource</code> corresponding to a | 171 * @param[in] decrypted_samples A <code>PP_Resource</code> corresponding to a |
| 170 * <code>PPB_Buffer_Dev</code> resource that contains a decrypted buffer | 172 * <code>PPB_Buffer_Dev</code> resource that contains a decrypted buffer |
| 171 * of decoded audio samples. | 173 * of decoded audio samples. |
| 172 * | 174 * |
| 173 * @param[in] request_id A unique value the browser can use to associate | 175 * @param[in] decrypted_block_info A <code>PP_DecryptedBlockInfo</code> that |
| 174 * decrypted_samples with a decrypt call. | 176 * contains the tracking info and result code associated with the |
| 177 * <code>decrypted_block</code>. |
| 175 */ | 178 */ |
| 176 void DeliverSamples( | 179 void DeliverSamples( |
| 177 [in] PP_Instance instance, | 180 [in] PP_Instance instance, |
| 178 [in] PP_Resource decrypted_samples, | 181 [in] PP_Resource decrypted_samples, |
| 179 [in] int32_t request_id); | 182 [in] PP_DecryptedBlockInfo decrypted_block_info); |
| 180 }; | 183 }; |
| OLD | NEW |