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

Side by Side Diff: ppapi/api/dev/ppp_content_decryption_module_dev.idl

Issue 10545036: Add PPAPI decryptor interfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add Decrypt/DecryptAndDecode Created 8 years, 6 months 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
(Empty)
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
3 * found in the LICENSE file.
4 */
5
6 /**
7 * This file defines the <code>PPP_ContentDecryptionModule_Dev</code>
8 * interface.
9 */
10 label Chrome {
11 M22 = 0.1
12 };
13
14 /**
15 * <code>PPP_ContentDecryptionModule_Dev</code> structure contains the function
16 * pointers the decryption plugin MUST implement to provide services needed by
17 * the media stack.
18 */
19 interface PPP_ContentDecryptionModule_Dev {
20 /**
21 * Provides a key or license to use for decryption. The key determines
22 * which methods are allowed by the plugin.
23 */
ddorwin 2012/06/06 21:52:52 We'll need GenerateKeyRequest() relatively soon an
Tom Finegan 2012/06/07 00:50:50 How about: PP_Bool GenerateKeyRequest( [in]
ddorwin 2012/06/07 18:51:26 Need key_system and init_data.
24 PP_Bool AddKey(
25 [in] PP_Instance instance,
26 [in] PP_Resource key);
27
28 /**
29 * Decrypts the block and returns the unencrypted block.
30 * In the case of media, the block contains encoded data.
31 * decryptedBlock is valid only after the callback is notified of success.
ddorwin 2012/06/06 21:52:52 Argument names in comments do not match the argume
Tom Finegan 2012/06/07 00:50:50 Done.
32 */
33 PP_Bool Decrypt(
34 [in] PP_Instance instance,
35 [in] PP_Resource encrypted_block,
36 [in] PP_Resource decrypted_block,
37 [in] PP_CompletionCallback callback);
ddorwin 2012/06/06 21:52:52 I wonder how we can report API-specific errors, su
Tom Finegan 2012/06/07 00:50:50 Yeah, I think that's what we'll have to do if we w
ddorwin 2012/06/07 18:51:26 I'm not sure if anyone actually does this. I think
38
39 /**
40 * Decrypts the block then decodes it and returns the raw (decoded)
41 * unencrypted frame.
42 * decodedFrame is valid only after the callback is notified of success.
43 */
44 PP_Bool DecryptAndDecode(
ddorwin 2012/06/06 21:52:52 We're going to need to somehow provide codec infor
45 [in] PP_Instance instance,
46 [in] PP_Resource encrypted_block,
47 [in] PP_Resource decoded_frame,
48 [in] PP_CompletionCallback callback);
49 };
OLDNEW
« no previous file with comments | « no previous file | ppapi/c/dev/ppp_content_decryption_module_dev.h » ('j') | webkit/plugins/ppapi/ppapi_plugin_instance.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698