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 */ |
11 | 11 |
12 [generate_thunk] | 12 [generate_thunk] |
13 | 13 |
14 label Chrome { | 14 label Chrome { |
15 M34 = 0.10 | 15 M35 = 0.11 |
xhwang
2014/03/01 02:11:30
dmichael: I am not sure whether I should change M3
| |
16 }; | 16 }; |
17 | 17 |
18 /** | 18 /** |
19 * <code>PPB_ContentDecryptor_Private</code> structure contains the function | 19 * <code>PPB_ContentDecryptor_Private</code> structure contains the function |
20 * pointers the browser must implement to support plugins implementing the | 20 * pointers the browser must implement to support plugins implementing the |
21 * <code>PPP_ContentDecryptor_Private</code> interface. This interface provides | 21 * <code>PPP_ContentDecryptor_Private</code> interface. This interface provides |
22 * browser side support for the Content Decryption Module (CDM) for Encrypted | 22 * browser side support for the Content Decryption Module (CDM) for Encrypted |
23 * Media Extensions: http://www.w3.org/TR/encrypted-media/ | 23 * Media Extensions: http://www.w3.org/TR/encrypted-media/ |
24 */ | 24 */ |
25 interface PPB_ContentDecryptor_Private { | 25 interface PPB_ContentDecryptor_Private { |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
107 * is intended. | 107 * is intended. |
108 * | 108 * |
109 * @param[in] media_error A MediaKeyError. | 109 * @param[in] media_error A MediaKeyError. |
110 * | 110 * |
111 * @param[in] system_error A system error code. | 111 * @param[in] system_error A system error code. |
112 */ | 112 */ |
113 void SessionError( | 113 void SessionError( |
114 [in] PP_Instance instance, | 114 [in] PP_Instance instance, |
115 [in] uint32_t session_id, | 115 [in] uint32_t session_id, |
116 [in] int32_t media_error, | 116 [in] int32_t media_error, |
117 [in] int32_t system_code); | 117 [in] uint32_t system_code); |
118 | 118 |
119 /** | 119 /** |
120 * Called after the <code>Decrypt()</code> method on the | 120 * Called after the <code>Decrypt()</code> method on the |
121 * <code>PPP_ContentDecryptor_Private</code> interface completes to | 121 * <code>PPP_ContentDecryptor_Private</code> interface completes to |
122 * deliver decrypted_block to the browser for decoding and rendering. | 122 * deliver decrypted_block to the browser for decoding and rendering. |
123 * | 123 * |
124 * The plugin must not hold a reference to the encrypted buffer resource | 124 * The plugin must not hold a reference to the encrypted buffer resource |
125 * provided to <code>Decrypt()</code> when it calls this method. The browser | 125 * provided to <code>Decrypt()</code> when it calls this method. The browser |
126 * will reuse the buffer in a subsequent <code>Decrypt()</code> call. | 126 * will reuse the buffer in a subsequent <code>Decrypt()</code> call. |
127 * | 127 * |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
245 * | 245 * |
246 * @param[in] decrypted_sample_info A <code>PP_DecryptedSampleInfo</code> that | 246 * @param[in] decrypted_sample_info A <code>PP_DecryptedSampleInfo</code> that |
247 * contains the tracking info and result code associated with the decrypted | 247 * contains the tracking info and result code associated with the decrypted |
248 * samples. | 248 * samples. |
249 */ | 249 */ |
250 void DeliverSamples( | 250 void DeliverSamples( |
251 [in] PP_Instance instance, | 251 [in] PP_Instance instance, |
252 [in] PP_Resource audio_frames, | 252 [in] PP_Resource audio_frames, |
253 [in] PP_DecryptedSampleInfo decrypted_sample_info); | 253 [in] PP_DecryptedSampleInfo decrypted_sample_info); |
254 }; | 254 }; |
OLD | NEW |