Chromium Code Reviews| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 93 * @param[in] encrypted_block_info A <code>PP_EncryptedBlockInfo</code> that | 93 * @param[in] encrypted_block_info A <code>PP_EncryptedBlockInfo</code> that |
| 94 * contains all auxiliary information needed for decryption of the | 94 * contains all auxiliary information needed for decryption of the |
| 95 * <code>encrypted_block</code>. | 95 * <code>encrypted_block</code>. |
| 96 */ | 96 */ |
| 97 void Decrypt( | 97 void Decrypt( |
| 98 [in] PP_Instance instance, | 98 [in] PP_Instance instance, |
| 99 [in] PP_Resource encrypted_block, | 99 [in] PP_Resource encrypted_block, |
| 100 [in] PP_EncryptedBlockInfo encrypted_block_info); | 100 [in] PP_EncryptedBlockInfo encrypted_block_info); |
| 101 | 101 |
| 102 /** | 102 /** |
| 103 * Decrypts the block, decodes it, and returns the unencrypted uncompressed | 103 * Decrypts encrypted_video_frame, decodes it, and returns the unencrypted |
| 104 * (decoded) media to the browser via the | 104 * uncompressed (decoded) video frame to the browser via the |
| 105 * <code>DeliverFrame()</code> method on the | |
| 105 * <code>PPB_ContentDecryptor_Private</code> interface. | 106 * <code>PPB_ContentDecryptor_Private</code> interface. |
| 106 * | 107 * |
| 107 * Decrypted and decoded video frames are sent to <code>DeliverFrame()</code>, | 108 * @param[in] encrypted_video_frame A <code>PP_Resource</code> corresponding |
| 108 * and decrypted and decoded audio samples are sent to | 109 * to a <code>PPB_Buffer_Dev</code> resource that contains an encrypted video |
| 109 * <code>DeliverSamples()</code>. | 110 * frame. |
| 110 * | 111 * |
| 111 * @param[in] resource A <code>PP_Resource</code> corresponding to a | 112 * @param[in] encrypted_video_frame_info A |
| 112 * <code>PPB_Buffer_Dev</code> resource that contains an encrypted data | 113 * <code>PP_EncryptedVideoFrameInfo</code> that contains all information |
| 113 * block. | 114 * needed to decrypt and decode of the |
|
Ami GONE FROM CHROMIUM
2012/10/01 03:21:41
s/of //
Tom Finegan
2012/10/02 02:42:26
Done, but reworded because the comment was incorre
| |
| 114 * | 115 * <code>encrypted_video_frame_info</code>. |
| 115 * @param[in] encrypted_block_info A <code>PP_EncryptedBlockInfo</code> that | |
| 116 * contains all auxiliary information needed for decryption of the | |
| 117 * <code>encrypted_block</code>. | |
| 118 */ | 116 */ |
| 119 void DecryptAndDecode( | 117 void DecryptAndDecodeFrame( |
| 120 [in] PP_Instance instance, | 118 [in] PP_Instance instance, |
| 121 [in] PP_Resource encrypted_block, | 119 [in] PP_Resource encrypted_video_frame, |
| 122 [in] PP_EncryptedBlockInfo encrypted_block_info); | 120 [in] PP_EncryptedVideoFrameInfo encrypted_video_frame_info); |
| 123 }; | 121 }; |
| OLD | NEW |