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 15 matching lines...) Expand all Loading... |
26 /** | 26 /** |
27 * The decryptor requires a key that has not been provided. | 27 * The decryptor requires a key that has not been provided. |
28 * | 28 * |
29 * Sent when the decryptor encounters encrypted content, but it does not have | 29 * Sent when the decryptor encounters encrypted content, but it does not have |
30 * the key required to decrypt the data. The plugin will call this method in | 30 * the key required to decrypt the data. The plugin will call this method in |
31 * response to a call to the <code>Decrypt()</code> method on the | 31 * response to a call to the <code>Decrypt()</code> method on the |
32 * <code>PPP_ContentDecryptor_Private<code> interface. | 32 * <code>PPP_ContentDecryptor_Private<code> interface. |
33 * | 33 * |
34 * The browser must notify the application that a key is needed, and, in | 34 * The browser must notify the application that a key is needed, and, in |
35 * response, the web application must direct the browser to call | 35 * response, the web application must direct the browser to call |
36 * <code>AddKey()</code> on the <code>PPP_ContentDecryptor_Private<code> | 36 * <code>AddKey()</code> on the <code>PPP_ContentDecryptor_Private</code> |
37 * interface. | 37 * interface. |
38 * | 38 * |
39 * @param[in] key_system A <code>PP_Var</code> of type | 39 * @param[in] key_system A <code>PP_Var</code> of type |
40 * <code>PP_VARTYPE_STRING</code> containing the name of the key system. | 40 * <code>PP_VARTYPE_STRING</code> containing the name of the key system. |
41 * | 41 * |
42 * @param[in] session_id A <code>PP_Var</code> of type | 42 * @param[in] session_id A <code>PP_Var</code> of type |
43 * <code>PP_VARTYPE_STRING</code> containing the session ID. | 43 * <code>PP_VARTYPE_STRING</code> containing the session ID. |
44 * | 44 * |
45 * @param[in] init_data A <code>PP_Var</code> of type | 45 * @param[in] init_data A <code>PP_Var</code> of type |
46 * <code>PP_VARTYPE_ARRAY_BUFFER</code> containing container-specific | 46 * <code>PP_VARTYPE_ARRAY_BUFFER</code> containing container-specific |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 * | 259 * |
260 * @param[in] decrypted_block_info A <code>PP_DecryptedBlockInfo</code> that | 260 * @param[in] decrypted_block_info A <code>PP_DecryptedBlockInfo</code> that |
261 * contains the tracking info and result code associated with the | 261 * contains the tracking info and result code associated with the |
262 * <code>decrypted_block</code>. | 262 * <code>decrypted_block</code>. |
263 */ | 263 */ |
264 void DeliverSamples( | 264 void DeliverSamples( |
265 [in] PP_Instance instance, | 265 [in] PP_Instance instance, |
266 [in] PP_Resource audio_frames, | 266 [in] PP_Resource audio_frames, |
267 [in] PP_DecryptedBlockInfo decrypted_block_info); | 267 [in] PP_DecryptedBlockInfo decrypted_block_info); |
268 }; | 268 }; |
OLD | NEW |