Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: ppapi/api/private/ppp_content_decryptor_private.idl

Issue 11270057: Add type argument to pepper content decryptor method GenerateKeyRequest(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased and addressed TODOs related to integration of this CL. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 M24 = 0.5 12 M24 = 0.6
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 {
23 /** 23 /**
24 * Generates a key request. key_system specifies the key or licensing system 24 * Generates a key request. key_system specifies the key or licensing system
25 * to use. init_data is a data buffer containing data for use in generating 25 * to use. type contains the MIME type of init_data. init_data is a data
26 * the request. 26 * buffer containing data for use in generating the request.
27 * 27 *
28 * Note: <code>GenerateKeyRequest()</code> must create the session ID used in 28 * Note: <code>GenerateKeyRequest()</code> must create the session ID used in
29 * other methods on this interface. The session ID must be provided to the 29 * other methods on this interface. The session ID must be provided to the
30 * browser by the CDM via <code>KeyMessage()</code> on the 30 * browser by the CDM via <code>KeyMessage()</code> on the
31 * <code>PPB_ContentDecryptor_Private</code> interface. 31 * <code>PPB_ContentDecryptor_Private</code> interface.
32 * 32 *
33 * @param[in] key_system A <code>PP_Var</code> of type 33 * @param[in] key_system A <code>PP_Var</code> of type
34 * <code>PP_VARTYPE_STRING</code> containing the name of the key system. 34 * <code>PP_VARTYPE_STRING</code> containing the name of the key system.
35 * 35 *
36 * @param[in] type A <code>PP_Var</code> of type
37 * <code>PP_VARTYPE_STRING</code> containing the MIME type for init_data.
38 *
36 * @param[in] init_data A <code>PP_Var</code> of type 39 * @param[in] init_data A <code>PP_Var</code> of type
37 * <code>PP_VARTYPE_ARRAYBUFFER</code> containing container specific 40 * <code>PP_VARTYPE_ARRAYBUFFER</code> containing container specific
38 * initialization data. 41 * initialization data.
39 */ 42 */
40 void GenerateKeyRequest( 43 void GenerateKeyRequest(
41 [in] PP_Instance instance, 44 [in] PP_Instance instance,
42 [in] PP_Var key_system, 45 [in] PP_Var key_system,
46 [in] PP_Var type,
43 [in] PP_Var init_data); 47 [in] PP_Var init_data);
44 48
45 /** 49 /**
46 * Provides a key or license to the decryptor for decrypting media data. 50 * Provides a key or license to the decryptor for decrypting media data.
47 * 51 *
48 * When the CDM needs more information to complete addition of the key it 52 * When the CDM needs more information to complete addition of the key it
49 * will call <code>KeyMessage()</code> on the 53 * will call <code>KeyMessage()</code> on the
50 * <code>PPB_ContentDecryptor_Private</code> interface, which the browser 54 * <code>PPB_ContentDecryptor_Private</code> interface, which the browser
51 * passes to the application. When the key is ready to use, the CDM 55 * passes to the application. When the key is ready to use, the CDM
52 * must call call <code>KeyAdded()</code> on the 56 * must call call <code>KeyAdded()</code> on the
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 * @param[in] encrypted_block_info A <code>PP_EncryptedBlockInfo</code> that 209 * @param[in] encrypted_block_info A <code>PP_EncryptedBlockInfo</code> that
206 * contains all auxiliary information needed for decryption of the 210 * contains all auxiliary information needed for decryption of the
207 * <code>encrypted_block</code>. 211 * <code>encrypted_block</code>.
208 */ 212 */
209 void DecryptAndDecode( 213 void DecryptAndDecode(
210 [in] PP_Instance instance, 214 [in] PP_Instance instance,
211 [in] PP_DecryptorStreamType decoder_type, 215 [in] PP_DecryptorStreamType decoder_type,
212 [in] PP_Resource encrypted_buffer, 216 [in] PP_Resource encrypted_buffer,
213 [in] PP_EncryptedBlockInfo encrypted_block_info); 217 [in] PP_EncryptedBlockInfo encrypted_block_info);
214 }; 218 };
OLDNEW
« no previous file with comments | « ppapi/api/private/ppb_content_decryptor_private.idl ('k') | ppapi/c/private/ppb_content_decryptor_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698