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

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

Issue 10545036: Add PPAPI decryptor interfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implement enough thunk stuff to call into PluginInstance CDM stubs Created 8 years, 5 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>
ddorwin 2012/07/13 19:19:48 We should probably call this ContentDecryptor or s
Tom Finegan 2012/07/17 01:11:10 Went with ContentDecryptor/Done.
8 * interface.
9 */
10 label Chrome {
11 M22 = 0.1
12 };
13
14 /**
15 * <code>PPB_ContentDecryptionModule_Dev</code> structure contains the function
16 * pointers the browser may implement to support plugins implementing the
ddorwin 2012/07/13 19:19:48 Why may and not MUST?
Tom Finegan 2012/07/17 01:11:10 Lack of certainty at time of writing. Done. :)
17 * <code>PPP_ContentDecryptionModule_Dev</code> interface.
18 */
19 interface PPB_ContentDecryptionModule_Dev {
20
21 /**
22 * A key or license is needed to decrypt media data.
23 */
24 void NeedKey(
25 [in] PP_Instance instance,
26 [in] PP_Var key_system,
27 [in] PP_Var session_id,
28 [in] PP_Resource init_data);
29
30 /**
31 * A key has been added as the result of a call to the <code>AddKey()</code>
32 * method on the <code>PPP_ContentDecryptionModule_Dev</code> interface.
33 */
34 void KeyAdded(
35 [in] PP_Instance instance,
36 [in] PP_Var key_system,
37 [in] PP_Var session_id);
38
39 /**
40 * A message or request has been generated by or for key_system. For example,
41 * a key request has been generated as the result of call to the
42 * <code>GenerateKeyRequest()</code> method on the
43 * <code>PPP_ContentDecryptionModule_Dev</code> interface, or another message
44 * must be sent in response to an <code>AddKey()</code> call.
ddorwin 2012/07/13 19:19:48 Messages may also be sent at other times during a
Tom Finegan 2012/07/17 01:11:10 Added another sentence explaining that AddKey is n
45 */
46 void KeyMessage(
47 [in] PP_Instance instance,
48 [in] PP_Var key_system,
49 [in] PP_Var session_id,
50 [in] PP_Resource message,
ddorwin 2012/07/13 19:19:48 We should define the types of all PP_Resource vari
Tom Finegan 2012/07/17 01:11:10 Done. I followed the doc, but aren't we going to u
51 [in] PP_Var default_url);
52
53 /**
54 * An error occured in a <code>PPP_ContentDecryptionModule_Dev</code> method,
ddorwin 2012/07/13 19:19:48 nit: remove ','
Tom Finegan 2012/07/17 01:11:10 Done.
55 * or within the plugin implementing the interface.
56 */
57 void KeyError(
58 [in] PP_Instance instance,
59 [in] PP_Var key_system,
60 [in] PP_Var session_id,
61 [in] uint16_t media_error,
62 [in] uint16_t system_error);
63
64 /**
65 * Called after the <code>Decrypt</code> method on the
66 * <code>PPP_ContentDecryptionModule_Dev</code> interface completes to
67 * deliver decrypted_block to the media stack.
68 */
69 void DeliverBlock(
70 [in] PP_Instance instance,
71 [in] PP_Resource decrypted_block,
72 [in] PP_CompletionCallback callback);
73
74 /**
75 * Called after the <code>DecryptAndDecode</code> method on the
76 * <code>PPP_ContentDecryptionModule_Dev</code> interface completes to
77 * deliver decrypted_frame to the media stack.
78 */
79 void DeliverFrame(
80 [in] PP_Instance instance,
81 [in] PP_Resource decrypted_frame,
82 [in] PP_CompletionCallback callback);
83
84 /**
85 * Called after the <code>DecryptAndDecode</code> method on the
86 * <code>PPP_ContentDecryptionModule_Dev</code> interface completes to
87 * deliver decrypted_samples to the media stack.
88 */
89 void DeliverSamples(
90 [in] PP_Instance instance,
91 [in] PP_Resource decrypted_samples,
92 [in] PP_CompletionCallback callback);
93 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698