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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 * <code>AddKey()</code> and <code>KeyMessage()</code> calls required to | 87 * <code>AddKey()</code> and <code>KeyMessage()</code> calls required to |
88 * prepare for decryption. | 88 * prepare for decryption. |
89 * | 89 * |
90 * @param[in] key_system A <code>PP_Var</code> of type | 90 * @param[in] key_system A <code>PP_Var</code> of type |
91 * <code>PP_VARTYPE_STRING</code> containing the name of the key system. | 91 * <code>PP_VARTYPE_STRING</code> containing the name of the key system. |
92 * | 92 * |
93 * @param[in] session_id A <code>PP_Var</code> of type | 93 * @param[in] session_id A <code>PP_Var</code> of type |
94 * <code>PP_VARTYPE_STRING</code> containing the session ID. | 94 * <code>PP_VARTYPE_STRING</code> containing the session ID. |
95 * | 95 * |
96 * @param[in] resource A <code>PP_Resource</code> corresponding to a | 96 * @param[in] resource A <code>PP_Resource</code> corresponding to a |
97 * <code>PPB_Buffer_Dev</code> resource that contains the message. | 97 * <code>PPB_Buffer_Dev</code> resource that contains the message. A 0 |
| 98 * resource is allowed which indicates an empty message. |
98 * | 99 * |
99 * @param[in] default_url A <code>PP_Var</code> of type | 100 * @param[in] default_url A <code>PP_Var</code> of type |
100 * <code>PP_VARTYPE_STRING</code> containing the default URL for the message. | 101 * <code>PP_VARTYPE_STRING</code> containing the default URL for the message. |
101 */ | 102 */ |
102 void KeyMessage( | 103 void KeyMessage( |
103 [in] PP_Instance instance, | 104 [in] PP_Instance instance, |
104 [in] PP_Var key_system, | 105 [in] PP_Var key_system, |
105 [in] PP_Var session_id, | 106 [in] PP_Var session_id, |
106 [in] PP_Resource message, | 107 [in] PP_Resource message, |
107 [in] PP_Var default_url); | 108 [in] PP_Var default_url); |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 * | 243 * |
243 * @param[in] decrypted_block_info A <code>PP_DecryptedBlockInfo</code> that | 244 * @param[in] decrypted_block_info A <code>PP_DecryptedBlockInfo</code> that |
244 * contains the tracking info and result code associated with the | 245 * contains the tracking info and result code associated with the |
245 * <code>decrypted_block</code>. | 246 * <code>decrypted_block</code>. |
246 */ | 247 */ |
247 void DeliverSamples( | 248 void DeliverSamples( |
248 [in] PP_Instance instance, | 249 [in] PP_Instance instance, |
249 [in] PP_Resource audio_frames, | 250 [in] PP_Resource audio_frames, |
250 [in] PP_DecryptedBlockInfo decrypted_block_info); | 251 [in] PP_DecryptedBlockInfo decrypted_block_info); |
251 }; | 252 }; |
OLD | NEW |