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 M43 = 0.14 | 12 M44 = 0.15 |
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 Encrypted Media Extensions: | 19 * Decryption Module (CDM) for Encrypted Media Extensions: |
20 * http://www.w3.org/TR/encrypted-media/ | 20 * http://www.w3.org/TR/encrypted-media/ |
21 */ | 21 */ |
22 interface PPP_ContentDecryptor_Private { | 22 interface PPP_ContentDecryptor_Private { |
23 /** | 23 /** |
24 * Initialize for the specified key system. | 24 * Initialize for the specified key system. |
25 * | 25 * |
| 26 * @param[in] promise_id A reference for the promise that gets resolved or |
| 27 * rejected depending upon the success or failure of initialization. |
| 28 * |
26 * @param[in] key_system A <code>PP_Var</code> of type | 29 * @param[in] key_system A <code>PP_Var</code> of type |
27 * <code>PP_VARTYPE_STRING</code> containing the name of the key system. | 30 * <code>PP_VARTYPE_STRING</code> containing the name of the key system. |
28 * @param[in] allow_distinctive_identifier Inform the CDM that it may use a | 31 * @param[in] allow_distinctive_identifier Inform the CDM that it may use a |
29 * distinctive identifier. | 32 * distinctive identifier. |
30 * @param[in] allow_persistent_state Inform the CDM that it may use persistent | 33 * @param[in] allow_persistent_state Inform the CDM that it may use persistent |
31 * state. | 34 * state. |
32 */ | 35 */ |
33 void Initialize( | 36 void Initialize( |
34 [in] PP_Instance instance, | 37 [in] PP_Instance instance, |
| 38 [in] uint32_t promise_id, |
35 [in] PP_Var key_system, | 39 [in] PP_Var key_system, |
36 [in] PP_Bool allow_distinctive_identifier, | 40 [in] PP_Bool allow_distinctive_identifier, |
37 [in] PP_Bool allow_persistent_state); | 41 [in] PP_Bool allow_persistent_state); |
38 | 42 |
39 /** | 43 /** |
40 * Provides a server certificate to be used to encrypt messages to the | 44 * Provides a server certificate to be used to encrypt messages to the |
41 * license server. | 45 * license server. |
42 * | 46 * |
43 * @param[in] promise_id A reference for the promise that gets resolved or | 47 * @param[in] promise_id A reference for the promise that gets resolved or |
44 * rejected depending upon the success or failure of setting the certificate. | 48 * rejected depending upon the success or failure of setting the certificate. |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 * @param[in] encrypted_block_info A <code>PP_EncryptedBlockInfo</code> that | 295 * @param[in] encrypted_block_info A <code>PP_EncryptedBlockInfo</code> that |
292 * contains all auxiliary information needed for decryption of the | 296 * contains all auxiliary information needed for decryption of the |
293 * <code>encrypted_block</code>. | 297 * <code>encrypted_block</code>. |
294 */ | 298 */ |
295 void DecryptAndDecode( | 299 void DecryptAndDecode( |
296 [in] PP_Instance instance, | 300 [in] PP_Instance instance, |
297 [in] PP_DecryptorStreamType decoder_type, | 301 [in] PP_DecryptorStreamType decoder_type, |
298 [in] PP_Resource encrypted_buffer, | 302 [in] PP_Resource encrypted_buffer, |
299 [in] PP_EncryptedBlockInfo encrypted_block_info); | 303 [in] PP_EncryptedBlockInfo encrypted_block_info); |
300 }; | 304 }; |
OLD | NEW |