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

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: Add missing IPC handler. 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 PP_Resource message, 150 PP_Resource message,
151 PP_Var default_url) = 0; 151 PP_Var default_url) = 0;
152 virtual void KeyError(PP_Instance instance, 152 virtual void KeyError(PP_Instance instance,
153 PP_Var key_system, 153 PP_Var key_system,
154 PP_Var session_id, 154 PP_Var session_id,
155 int32_t media_error, 155 int32_t media_error,
156 int32_t system_error) = 0; 156 int32_t system_error) = 0;
157 virtual void DeliverBlock(PP_Instance instance, 157 virtual void DeliverBlock(PP_Instance instance,
158 PP_Resource decrypted_block, 158 PP_Resource decrypted_block,
159 const PP_DecryptedBlockInfo* block_info) = 0; 159 const PP_DecryptedBlockInfo* block_info) = 0;
160 virtual void DecoderInitialized(PP_Instance instance,
161 PP_Bool success,
162 uint32_t request_id) = 0;
160 virtual void DeliverFrame(PP_Instance instance, 163 virtual void DeliverFrame(PP_Instance instance,
161 PP_Resource decrypted_frame, 164 PP_Resource decrypted_frame,
162 const PP_DecryptedFrameInfo* frame_info) = 0; 165 const PP_DecryptedFrameInfo* frame_info) = 0;
163 virtual void DeliverSamples(PP_Instance instance, 166 virtual void DeliverSamples(PP_Instance instance,
164 PP_Resource decrypted_samples, 167 PP_Resource decrypted_samples,
165 const PP_DecryptedBlockInfo* block_info) = 0; 168 const PP_DecryptedBlockInfo* block_info) = 0;
166 169
167 // URLUtil. 170 // URLUtil.
168 virtual PP_Var ResolveRelativeToDocument( 171 virtual PP_Var ResolveRelativeToDocument(
169 PP_Instance instance, 172 PP_Instance instance,
170 PP_Var relative, 173 PP_Var relative,
171 PP_URLComponents_Dev* components) = 0; 174 PP_URLComponents_Dev* components) = 0;
172 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) = 0; 175 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) = 0;
173 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance, 176 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance,
174 PP_Instance target) = 0; 177 PP_Instance target) = 0;
175 virtual PP_Var GetDocumentURL(PP_Instance instance, 178 virtual PP_Var GetDocumentURL(PP_Instance instance,
176 PP_URLComponents_Dev* components) = 0; 179 PP_URLComponents_Dev* components) = 0;
177 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, 180 virtual PP_Var GetPluginInstanceURL(PP_Instance instance,
178 PP_URLComponents_Dev* components) = 0; 181 PP_URLComponents_Dev* components) = 0;
179 #endif // !defined(OS_NACL) 182 #endif // !defined(OS_NACL)
180 183
181 static const ApiID kApiID = API_ID_PPB_INSTANCE; 184 static const ApiID kApiID = API_ID_PPB_INSTANCE;
182 }; 185 };
183 186
184 } // namespace thunk 187 } // namespace thunk
185 } // namespace ppapi 188 } // namespace ppapi
186 189
187 #endif // PPAPI_THUNK_INSTANCE_API_H_ 190 #endif // PPAPI_THUNK_INSTANCE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698