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

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

Issue 10545036: Add PPAPI decryptor interfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Perhaps I've gone too far :) 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_ContentDecryptor_Dev</code>
8 * interface.
9 */
10 label Chrome {
11 M22 = 0.1
12 };
13
14 /**
15 * <code>PPB_ContentDecryptor_Dev</code> structure contains the function
16 * pointers the browser may implement to support plugins implementing the
17 * <code>PPP_ContentDecryptor_Dev</code> interface.
18 */
19 interface PPB_ContentDecryptor_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, /* String. */
27 [in] PP_Var session_id, /* String. */
28 [in] PP_Resource init_data); /* PPB_Buffer. */
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_ContentDecryptor_Dev</code> interface.
33 */
34 void KeyAdded(
35 [in] PP_Instance instance,
36 [in] PP_Var key_system, /* String. */
37 [in] PP_Var session_id); /* String. */
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_ContentDecryptor_Dev</code> interface or another message
44 * must be sent in response to an <code>AddKey()</code> call. Note that
45 * <code>KeyMessage</code> can be used for purposes other than results to
46 * <code>AddKey()</code> calls.
47 */
48 void KeyMessage(
49 [in] PP_Instance instance,
50 [in] PP_Var key_system, /* String. */
51 [in] PP_Var session_id, /* String. */
52 [in] PP_Resource message, /* PPB_Buffer. */
53 [in] PP_Var default_url); /* String. */
54
55 /**
56 * An error occured in a <code>PPP_ContentDecryptor_Dev</code> method,
57 * or within the plugin implementing the interface.
58 */
59 void KeyError(
60 [in] PP_Instance instance,
61 [in] PP_Var key_system, /* String. */
62 [in] PP_Var session_id, /* String. */
63 [in] uint16_t media_error,
64 [in] uint16_t system_error);
65
66 /**
67 * Called after the <code>Decrypt</code> method on the
68 * <code>PPP_ContentDecryptor_Dev</code> interface completes to
69 * deliver decrypted_block to the media stack.
70 */
71 void DeliverBlock(
72 [in] PP_Instance instance,
73 [in] PP_Resource decrypted_block, /* PPB_Buffer. */
74 [in] PP_CompletionCallback callback);
75
76 /**
77 * Called after the <code>DecryptAndDecode</code> method on the
78 * <code>PPP_ContentDecryptor_Dev</code> interface completes to
79 * deliver decrypted_frame to the media stack.
80 */
81 void DeliverFrame(
82 [in] PP_Instance instance,
83 [in] PP_Resource decrypted_frame, /* PPB_Buffer. */
fgalligan1 2012/07/24 04:33:41 Would decoded_frame be a better name?
Tom Finegan 2012/07/25 02:00:07 IIRC ddorwin specifically asked for decrypted_fram
84 [in] PP_CompletionCallback callback);
85
86 /**
87 * Called after the <code>DecryptAndDecode</code> method on the
88 * <code>PPP_ContentDecryptor_Dev</code> interface completes to
89 * deliver decrypted_samples to the media stack.
90 */
91 void DeliverSamples(
92 [in] PP_Instance instance,
93 [in] PP_Resource decrypted_samples, /* PPB_Buffer. */
94 [in] PP_CompletionCallback callback);
95 };
OLDNEW
« no previous file with comments | « no previous file | ppapi/api/dev/ppp_content_decryptor_dev.idl » ('j') | ppapi/cpp/dev/content_decryptor_dev.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698