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>PPP_ContentDecryptor_Private</code> | 7 * This file defines the <code>PPP_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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 /** | 78 /** |
79 * Decrypts the block and returns the unencrypted block via | 79 * Decrypts the block and returns the unencrypted block via |
80 * <code>DeliverBlock()</code> on the | 80 * <code>DeliverBlock()</code> on the |
81 * <code>PPB_ContentDecryptor_Private</code> interface. The returned block | 81 * <code>PPB_ContentDecryptor_Private</code> interface. The returned block |
82 * contains encoded data. | 82 * contains encoded data. |
83 * | 83 * |
84 * @param[in] resource A <code>PP_Resource</code> corresponding to a | 84 * @param[in] resource A <code>PP_Resource</code> corresponding to a |
85 * <code>PPB_Buffer_Dev</code> resource that contains an encrypted data | 85 * <code>PPB_Buffer_Dev</code> resource that contains an encrypted data |
86 * block. | 86 * block. |
87 * | 87 * |
88 * @param[in] request_id A value used by the browser to associate data | 88 * @param[in] encrypted_block_info A <code>PP_EncryptedBlockInfo</code> that |
89 * returned via the <code>PPB_ContentDecryptor_Private</code> interface with | 89 * contains all auxiliary information needed for decryption of the |
90 * decryption method calls. | 90 * <code>encrypted_block</code>. |
91 */ | 91 */ |
92 PP_Bool Decrypt( | 92 PP_Bool Decrypt( |
93 [in] PP_Instance instance, | 93 [in] PP_Instance instance, |
94 [in] PP_Resource encrypted_block, | 94 [in] PP_Resource encrypted_block, |
95 [in] int32_t request_id); | 95 [in] PP_EncryptedBlockInfo encrypted_block_info); |
96 | 96 |
97 /** | 97 /** |
98 * Decrypts the block, decodes it, and returns the unencrypted uncompressed | 98 * Decrypts the block, decodes it, and returns the unencrypted uncompressed |
99 * (decoded) media to the browser via the | 99 * (decoded) media to the browser via the |
100 * <code>PPB_ContentDecryptor_Private</code> interface. | 100 * <code>PPB_ContentDecryptor_Private</code> interface. |
101 * | 101 * |
102 * Decrypted and decoded video frames are sent to <code>DeliverFrame()</code>, | 102 * Decrypted and decoded video frames are sent to <code>DeliverFrame()</code>, |
103 * and decrypted and decoded audio samples are sent to | 103 * and decrypted and decoded audio samples are sent to |
104 * <code>DeliverSamples()</code>. | 104 * <code>DeliverSamples()</code>. |
105 * | 105 * |
106 * @param[in] resource A <code>PP_Resource</code> corresponding to a | 106 * @param[in] resource A <code>PP_Resource</code> corresponding to a |
107 * <code>PPB_Buffer_Dev</code> resource that contains an encrypted data | 107 * <code>PPB_Buffer_Dev</code> resource that contains an encrypted data |
108 * block. | 108 * block. |
109 * | 109 * |
110 * @param[in] request_id A value used by the browser to associate data | 110 * @param[in] encrypted_block_info A <code>PP_EncryptedBlockInfo</code> that |
111 * returned via the <code>PPB_ContentDecryptor_Private</code> interface with | 111 * contains all auxiliary information needed for decryption of the |
112 * decryption method calls. | 112 * <code>encrypted_block</code>. |
113 */ | 113 */ |
114 PP_Bool DecryptAndDecode( | 114 PP_Bool DecryptAndDecode( |
115 [in] PP_Instance instance, | 115 [in] PP_Instance instance, |
116 [in] PP_Resource encrypted_block, | 116 [in] PP_Resource encrypted_block, |
117 [in] int32_t request_id); | 117 [in] PP_EncryptedBlockInfo encrypted_block_info); |
118 }; | 118 }; |
OLD | NEW |