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

Side by Side Diff: ppapi/thunk/ppb_instance_api.h

Issue 11013052: Add PPAPI CDM video decoder initialization. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. 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 #ifndef PPAPI_THUNK_INSTANCE_API_H_ 5 #ifndef PPAPI_THUNK_INSTANCE_API_H_
6 #define PPAPI_THUNK_INSTANCE_API_H_ 6 #define PPAPI_THUNK_INSTANCE_API_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ppapi/c/dev/ppb_console_dev.h" 10 #include "ppapi/c/dev/ppb_console_dev.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 PP_Resource message, 154 PP_Resource message,
155 PP_Var default_url) = 0; 155 PP_Var default_url) = 0;
156 virtual void KeyError(PP_Instance instance, 156 virtual void KeyError(PP_Instance instance,
157 PP_Var key_system, 157 PP_Var key_system,
158 PP_Var session_id, 158 PP_Var session_id,
159 int32_t media_error, 159 int32_t media_error,
160 int32_t system_error) = 0; 160 int32_t system_error) = 0;
161 virtual void DeliverBlock(PP_Instance instance, 161 virtual void DeliverBlock(PP_Instance instance,
162 PP_Resource decrypted_block, 162 PP_Resource decrypted_block,
163 const PP_DecryptedBlockInfo* block_info) = 0; 163 const PP_DecryptedBlockInfo* block_info) = 0;
164 virtual void DecoderInitialized(PP_Instance instance,
165 PP_Bool success,
166 uint32_t request_id) = 0;
164 virtual void DeliverFrame(PP_Instance instance, 167 virtual void DeliverFrame(PP_Instance instance,
165 PP_Resource decrypted_frame, 168 PP_Resource decrypted_frame,
166 const PP_DecryptedFrameInfo* frame_info) = 0; 169 const PP_DecryptedFrameInfo* frame_info) = 0;
167 virtual void DeliverSamples(PP_Instance instance, 170 virtual void DeliverSamples(PP_Instance instance,
168 PP_Resource decrypted_samples, 171 PP_Resource decrypted_samples,
169 const PP_DecryptedBlockInfo* block_info) = 0; 172 const PP_DecryptedBlockInfo* block_info) = 0;
170 173
171 // URLUtil. 174 // URLUtil.
172 virtual PP_Var ResolveRelativeToDocument( 175 virtual PP_Var ResolveRelativeToDocument(
173 PP_Instance instance, 176 PP_Instance instance,
174 PP_Var relative, 177 PP_Var relative,
175 PP_URLComponents_Dev* components) = 0; 178 PP_URLComponents_Dev* components) = 0;
176 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) = 0; 179 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) = 0;
177 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance, 180 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance,
178 PP_Instance target) = 0; 181 PP_Instance target) = 0;
179 virtual PP_Var GetDocumentURL(PP_Instance instance, 182 virtual PP_Var GetDocumentURL(PP_Instance instance,
180 PP_URLComponents_Dev* components) = 0; 183 PP_URLComponents_Dev* components) = 0;
181 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, 184 virtual PP_Var GetPluginInstanceURL(PP_Instance instance,
182 PP_URLComponents_Dev* components) = 0; 185 PP_URLComponents_Dev* components) = 0;
183 #endif // !defined(OS_NACL) 186 #endif // !defined(OS_NACL)
184 187
185 static const ApiID kApiID = API_ID_PPB_INSTANCE; 188 static const ApiID kApiID = API_ID_PPB_INSTANCE;
186 }; 189 };
187 190
188 } // namespace thunk 191 } // namespace thunk
189 } // namespace ppapi 192 } // namespace ppapi
190 193
191 #endif // PPAPI_THUNK_INSTANCE_API_H_ 194 #endif // PPAPI_THUNK_INSTANCE_API_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_content_decryptor_private_thunk.cc ('k') | webkit/media/crypto/ppapi/cdm_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698