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 */ |
11 label Chrome { | 11 label Chrome { |
12 M23 = 0.2 | 12 M24 = 0.3 |
13 }; | 13 }; |
14 | 14 |
15 /** | 15 /** |
16 * <code>PPP_ContentDecryptor_Private</code> structure contains the function | 16 * <code>PPP_ContentDecryptor_Private</code> structure contains the function |
17 * pointers the decryption plugin must implement to provide services needed by | 17 * pointers the decryption plugin must implement to provide services needed by |
18 * the browser. This interface provides the plugin side support for the Content | 18 * the browser. This interface provides the plugin side support for the Content |
19 * Decryption Module (CDM) for v0.1 of the proposed Encrypted Media Extensions: | 19 * Decryption Module (CDM) for v0.1 of the proposed Encrypted Media Extensions: |
20 * http://goo.gl/rbdnR | 20 * http://goo.gl/rbdnR |
21 */ | 21 */ |
22 interface PPP_ContentDecryptor_Private { | 22 interface PPP_ContentDecryptor_Private { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
92 * | 92 * |
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 /** |
xhwang
2012/10/11 03:53:35
Ditto on order of functions.
Tom Finegan
2012/10/12 05:01:56
See previous comment.
| |
103 * Decrypts encrypted_video_frame, decodes it, and returns the unencrypted | 103 * De-initializes the decoder for the <code>PP_StreamType</code> specified |
104 * by <code>decoder_type</code>. De-initialization completion is reported to | |
105 * the browser using the <code>DecoderDeinitializeDone()</code> method on | |
106 * the <code>PPB_ContentDecryptor_Private</code> interface. | |
107 * | |
108 * @param[in] decoder_type A <code>PP_StreamType</code> that specifies the | |
109 * decoder to de-initialize. | |
110 * | |
111 * @param[in] request_id A request ID that allows the browser to associate a | |
112 * request to de-initialize a decoder with the corresponding call to the | |
113 * <code>DecoderDeinitializeDone()</code> method on the | |
114 * <code>PPB_ContentDecryptor_Private</code> interface. | |
115 */ | |
116 void DeinitializeDecoder( | |
117 [in] PP_Instance instance, | |
118 [in] PP_StreamType decoder_type, | |
119 [in] uint32_t request_id); | |
120 | |
121 /** | |
122 * Resets the decoder for the <code>PP_StreamType</code> specified | |
123 * by <code>decoder_type</code>. Reset completion is reported to the browser | |
124 * using the <code>DecoderResetDone()</code> method on the | |
125 * <code>PPB_ContentDecryptor_Private</code> interface. | |
126 * | |
127 * @param[in] decoder_type A <code>PP_StreamType</code> that specifies the | |
128 * decoder to reset. | |
129 * | |
130 * @param[in] request_id A request ID that allows the browser to associate a | |
131 * request to reset the decoder with a corresponding call to the | |
132 * <code>DecoderResetDone()</code> method on the | |
133 * <code>PPB_ContentDecryptor_Private</code> interface. | |
134 */ | |
135 void ResetDecoder( | |
136 [in] PP_Instance instance, | |
137 [in] PP_StreamType decoder_type, | |
138 [in] uint32_t request_id); | |
139 | |
140 /** | |
141 * Decrypts encrypted_video_frame, decodes it, and returns the unencrypted | |
104 * uncompressed (decoded) video frame to the browser via the | 142 * uncompressed (decoded) video frame to the browser via the |
105 * <code>DeliverFrame()</code> method on the | 143 * <code>DeliverFrame()</code> method on the |
106 * <code>PPB_ContentDecryptor_Private</code> interface. | 144 * <code>PPB_ContentDecryptor_Private</code> interface. |
107 * | 145 * |
108 * @param[in] encrypted_video_frame A <code>PP_Resource</code> corresponding | 146 * @param[in] encrypted_video_frame A <code>PP_Resource</code> corresponding |
109 * to a <code>PPB_Buffer_Dev</code> resource that contains an encrypted video | 147 * to a <code>PPB_Buffer_Dev</code> resource that contains an encrypted video |
110 * frame. | 148 * frame. |
111 * | 149 * |
112 * @param[in] encrypted_video_frame_info A | 150 * @param[in] encrypted_video_frame_info A |
113 * <code>PP_EncryptedVideoFrameInfo</code> that contains all information | 151 * <code>PP_EncryptedVideoFrameInfo</code> that contains all information |
114 * needed to decrypt and decode <code>encrypted_video_frame</code>. | 152 * needed to decrypt and decode <code>encrypted_video_frame</code>. |
115 */ | 153 */ |
116 void DecryptAndDecodeFrame( | 154 void DecryptAndDecodeFrame( |
117 [in] PP_Instance instance, | 155 [in] PP_Instance instance, |
118 [in] PP_Resource encrypted_video_frame, | 156 [in] PP_Resource encrypted_video_frame, |
119 [in] PP_EncryptedVideoFrameInfo encrypted_video_frame_info); | 157 [in] PP_EncryptedVideoFrameInfo encrypted_video_frame_info); |
120 }; | 158 }; |
OLD | NEW |