| 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 /* From private/ppp_content_decryptor_private.idl, | 6 /* From private/ppp_content_decryptor_private.idl, |
| 7 * modified Fri Dec 19 15:58:46 2014. | 7 * modified Thu Mar 5 13:03:48 2015. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 #ifndef PPAPI_C_PRIVATE_PPP_CONTENT_DECRYPTOR_PRIVATE_H_ | 10 #ifndef PPAPI_C_PRIVATE_PPP_CONTENT_DECRYPTOR_PRIVATE_H_ |
| 11 #define PPAPI_C_PRIVATE_PPP_CONTENT_DECRYPTOR_PRIVATE_H_ | 11 #define PPAPI_C_PRIVATE_PPP_CONTENT_DECRYPTOR_PRIVATE_H_ |
| 12 | 12 |
| 13 #include "ppapi/c/pp_bool.h" | 13 #include "ppapi/c/pp_bool.h" |
| 14 #include "ppapi/c/pp_instance.h" | 14 #include "ppapi/c/pp_instance.h" |
| 15 #include "ppapi/c/pp_macros.h" | 15 #include "ppapi/c/pp_macros.h" |
| 16 #include "ppapi/c/pp_resource.h" | 16 #include "ppapi/c/pp_resource.h" |
| 17 #include "ppapi/c/pp_stdint.h" | 17 #include "ppapi/c/pp_stdint.h" |
| 18 #include "ppapi/c/pp_var.h" | 18 #include "ppapi/c/pp_var.h" |
| 19 #include "ppapi/c/private/pp_content_decryptor.h" | 19 #include "ppapi/c/private/pp_content_decryptor.h" |
| 20 | 20 |
| 21 #define PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_13 \ | 21 #define PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_14 \ |
| 22 "PPP_ContentDecryptor_Private;0.13" | 22 "PPP_ContentDecryptor_Private;0.14" |
| 23 #define PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE \ | 23 #define PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE \ |
| 24 PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_13 | 24 PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE_0_14 |
| 25 | 25 |
| 26 /** | 26 /** |
| 27 * @file | 27 * @file |
| 28 * This file defines the <code>PPP_ContentDecryptor_Private</code> | 28 * This file defines the <code>PPP_ContentDecryptor_Private</code> |
| 29 * interface. Note: This is a special interface, only to be used for Content | 29 * interface. Note: This is a special interface, only to be used for Content |
| 30 * Decryption Modules, not normal plugins. | 30 * Decryption Modules, not normal plugins. |
| 31 */ | 31 */ |
| 32 | 32 |
| 33 | 33 |
| 34 /** | 34 /** |
| 35 * @addtogroup Interfaces | 35 * @addtogroup Interfaces |
| 36 * @{ | 36 * @{ |
| 37 */ | 37 */ |
| 38 /** | 38 /** |
| 39 * <code>PPP_ContentDecryptor_Private</code> structure contains the function | 39 * <code>PPP_ContentDecryptor_Private</code> structure contains the function |
| 40 * pointers the decryption plugin must implement to provide services needed by | 40 * pointers the decryption plugin must implement to provide services needed by |
| 41 * the browser. This interface provides the plugin side support for the Content | 41 * the browser. This interface provides the plugin side support for the Content |
| 42 * Decryption Module (CDM) for Encrypted Media Extensions: | 42 * Decryption Module (CDM) for Encrypted Media Extensions: |
| 43 * http://www.w3.org/TR/encrypted-media/ | 43 * http://www.w3.org/TR/encrypted-media/ |
| 44 */ | 44 */ |
| 45 struct PPP_ContentDecryptor_Private_0_13 { | 45 struct PPP_ContentDecryptor_Private_0_14 { |
| 46 /** | 46 /** |
| 47 * Initialize for the specified key system. | 47 * Initialize for the specified key system. |
| 48 * | 48 * |
| 49 * @param[in] key_system A <code>PP_Var</code> of type | 49 * @param[in] key_system A <code>PP_Var</code> of type |
| 50 * <code>PP_VARTYPE_STRING</code> containing the name of the key system. | 50 * <code>PP_VARTYPE_STRING</code> containing the name of the key system. |
| 51 * @param[in] allow_distinctive_identifier Instruct the CDM to allow using a |
| 52 * distinctive identifier. |
| 53 * @param[in] allow_perisistent_state Instruct the CDM to allow storing |
| 54 * persistent state. |
| 51 */ | 55 */ |
| 52 void (*Initialize)(PP_Instance instance, struct PP_Var key_system); | 56 void (*Initialize)(PP_Instance instance, |
| 57 struct PP_Var key_system, |
| 58 PP_Bool allow_distinctive_identifier, |
| 59 PP_Bool allow_persistent_state); |
| 53 /** | 60 /** |
| 54 * Provides a server certificate to be used to encrypt messages to the | 61 * Provides a server certificate to be used to encrypt messages to the |
| 55 * license server. | 62 * license server. |
| 56 * | 63 * |
| 57 * @param[in] promise_id A reference for the promise that gets resolved or | 64 * @param[in] promise_id A reference for the promise that gets resolved or |
| 58 * rejected depending upon the success or failure of setting the certificate. | 65 * rejected depending upon the success or failure of setting the certificate. |
| 59 * | 66 * |
| 60 * @param[in] server_certificate A <code>PP_Var</code> of type | 67 * @param[in] server_certificate A <code>PP_Var</code> of type |
| 61 * <code>PP_VARTYPE_ARRAYBUFFER</code> containing the certificate to be used. | 68 * <code>PP_VARTYPE_ARRAYBUFFER</code> containing the certificate to be used. |
| 62 */ | 69 */ |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 * contains all auxiliary information needed for decryption of the | 294 * contains all auxiliary information needed for decryption of the |
| 288 * <code>encrypted_block</code>. | 295 * <code>encrypted_block</code>. |
| 289 */ | 296 */ |
| 290 void (*DecryptAndDecode)( | 297 void (*DecryptAndDecode)( |
| 291 PP_Instance instance, | 298 PP_Instance instance, |
| 292 PP_DecryptorStreamType decoder_type, | 299 PP_DecryptorStreamType decoder_type, |
| 293 PP_Resource encrypted_buffer, | 300 PP_Resource encrypted_buffer, |
| 294 const struct PP_EncryptedBlockInfo* encrypted_block_info); | 301 const struct PP_EncryptedBlockInfo* encrypted_block_info); |
| 295 }; | 302 }; |
| 296 | 303 |
| 297 typedef struct PPP_ContentDecryptor_Private_0_13 PPP_ContentDecryptor_Private; | 304 typedef struct PPP_ContentDecryptor_Private_0_14 PPP_ContentDecryptor_Private; |
| 298 /** | 305 /** |
| 299 * @} | 306 * @} |
| 300 */ | 307 */ |
| 301 | 308 |
| 302 #endif /* PPAPI_C_PRIVATE_PPP_CONTENT_DECRYPTOR_PRIVATE_H_ */ | 309 #endif /* PPAPI_C_PRIVATE_PPP_CONTENT_DECRYPTOR_PRIVATE_H_ */ |
| 303 | 310 |
| OLD | NEW |