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 */ |
| 11 label Chrome { | 11 label Chrome { |
| 12 M41 = 0.13 | 12 M43 = 0.14 |
| 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] key_system A <code>PP_Var</code> of type | 26 * @param[in] key_system A <code>PP_Var</code> of type |
| 27 * <code>PP_VARTYPE_STRING</code> containing the name of the key system. | 27 * <code>PP_VARTYPE_STRING</code> containing the name of the key system. |
| 28 * @param[in] allow_distinctive_identifier Instruct the CDM to allow using a | |
|
ddorwin
2015/03/06 21:42:54
Inform the CDM that it may use a...
This is more
sandersd (OOO until July 31)
2015/03/06 22:36:58
Done.
| |
| 29 * distinctive identifier. | |
| 30 * @param[in] allow_perisistent_state Instruct the CDM to allow storing | |
|
jrummell
2015/03/06 21:40:47
s/peris/pers/
sandersd (OOO until July 31)
2015/03/06 22:36:58
Done.
| |
| 31 * persistent state. | |
| 28 */ | 32 */ |
| 29 void Initialize( | 33 void Initialize( |
| 30 [in] PP_Instance instance, | 34 [in] PP_Instance instance, |
| 31 [in] PP_Var key_system); | 35 [in] PP_Var key_system, |
| 36 [in] PP_Bool allow_distinctive_identifier, | |
| 37 [in] PP_Bool allow_persistent_state); | |
|
dmichael (off chromium)
2015/03/06 22:32:31
Are we trusting the plugin to do the right thing,
sandersd (OOO until July 31)
2015/03/06 22:50:52
I've just updated the CL description to explain th
| |
| 32 | 38 |
| 33 /** | 39 /** |
| 34 * Provides a server certificate to be used to encrypt messages to the | 40 * Provides a server certificate to be used to encrypt messages to the |
| 35 * license server. | 41 * license server. |
| 36 * | 42 * |
| 37 * @param[in] promise_id A reference for the promise that gets resolved or | 43 * @param[in] promise_id A reference for the promise that gets resolved or |
| 38 * rejected depending upon the success or failure of setting the certificate. | 44 * rejected depending upon the success or failure of setting the certificate. |
| 39 * | 45 * |
| 40 * @param[in] server_certificate A <code>PP_Var</code> of type | 46 * @param[in] server_certificate A <code>PP_Var</code> of type |
| 41 * <code>PP_VARTYPE_ARRAYBUFFER</code> containing the certificate to be used. | 47 * <code>PP_VARTYPE_ARRAYBUFFER</code> containing the certificate to be used. |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 285 * @param[in] encrypted_block_info A <code>PP_EncryptedBlockInfo</code> that | 291 * @param[in] encrypted_block_info A <code>PP_EncryptedBlockInfo</code> that |
| 286 * contains all auxiliary information needed for decryption of the | 292 * contains all auxiliary information needed for decryption of the |
| 287 * <code>encrypted_block</code>. | 293 * <code>encrypted_block</code>. |
| 288 */ | 294 */ |
| 289 void DecryptAndDecode( | 295 void DecryptAndDecode( |
| 290 [in] PP_Instance instance, | 296 [in] PP_Instance instance, |
| 291 [in] PP_DecryptorStreamType decoder_type, | 297 [in] PP_DecryptorStreamType decoder_type, |
| 292 [in] PP_Resource encrypted_buffer, | 298 [in] PP_Resource encrypted_buffer, |
| 293 [in] PP_EncryptedBlockInfo encrypted_block_info); | 299 [in] PP_EncryptedBlockInfo encrypted_block_info); |
| 294 }; | 300 }; |
| OLD | NEW |