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

Side by Side Diff: ppapi/c/private/ppp_content_decryptor_private.h

Issue 11087044: Generalize Pepper CDM API decrypt and decode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
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 Mon Oct 01 20:27:29 2012. 7 * modified Tue Oct 09 22:39:32 2012.
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"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 * block. 107 * block.
108 * 108 *
109 * @param[in] encrypted_block_info A <code>PP_EncryptedBlockInfo</code> that 109 * @param[in] encrypted_block_info A <code>PP_EncryptedBlockInfo</code> that
110 * contains all auxiliary information needed for decryption of the 110 * contains all auxiliary information needed for decryption of the
111 * <code>encrypted_block</code>. 111 * <code>encrypted_block</code>.
112 */ 112 */
113 void (*Decrypt)(PP_Instance instance, 113 void (*Decrypt)(PP_Instance instance,
114 PP_Resource encrypted_block, 114 PP_Resource encrypted_block,
115 const struct PP_EncryptedBlockInfo* encrypted_block_info); 115 const struct PP_EncryptedBlockInfo* encrypted_block_info);
116 /** 116 /**
117 * Decrypts encrypted_video_frame, decodes it, and returns the unencrypted 117 * Decrypts encrypted_buffer, decodes it, and returns the unencrypted
118 * uncompressed (decoded) video frame to the browser via the 118 * uncompressed (decoded) data to the browser via the
119 * <code>DeliverFrame()</code> method on the 119 * <code>DeliverFrame()</code> or <code>DeliverSamples()</code> method on the
120 * <code>PPB_ContentDecryptor_Private</code> interface. 120 * <code>PPB_ContentDecryptor_Private</code> interface.
121 * 121 *
122 * @param[in] encrypted_video_frame A <code>PP_Resource</code> corresponding 122 * @param[in] encrypted_video_frame A <code>PP_Resource</code> corresponding
123 * to a <code>PPB_Buffer_Dev</code> resource that contains an encrypted video 123 * to a <code>PPB_Buffer_Dev</code> resource that contains an encrypted video
124 * frame. 124 * frame.
125 * 125 *
126 * @param[in] encrypted_video_frame_info A 126 * @param[in] encrypted_media_info A <code>PP_EncryptedMediaInfo</code> that
127 * <code>PP_EncryptedVideoFrameInfo</code> that contains all information 127 * contains all information needed to decrypt and decode
128 * needed to decrypt and decode <code>encrypted_video_frame</code>. 128 * <code>encrypted_buffer</code>.
129 */ 129 */
130 void (*DecryptAndDecodeFrame)( 130 void (*DecryptAndDecode)(
131 PP_Instance instance, 131 PP_Instance instance,
132 PP_Resource encrypted_video_frame, 132 PP_Resource encrypted_buffer,
133 const struct PP_EncryptedVideoFrameInfo* encrypted_video_frame_info); 133 const struct PP_EncryptedMediaInfo* encrypted_media_info);
134 }; 134 };
135 135
136 typedef struct PPP_ContentDecryptor_Private_0_2 PPP_ContentDecryptor_Private; 136 typedef struct PPP_ContentDecryptor_Private_0_2 PPP_ContentDecryptor_Private;
137 /** 137 /**
138 * @} 138 * @}
139 */ 139 */
140 140
141 #endif /* PPAPI_C_PRIVATE_PPP_CONTENT_DECRYPTOR_PRIVATE_H_ */ 141 #endif /* PPAPI_C_PRIVATE_PPP_CONTENT_DECRYPTOR_PRIVATE_H_ */
142 142
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698