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

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

Issue 11028087: Add decoder de-initialize and reset to the Pepper CDM API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Finish first pass. 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 DecoderReset(PP_Instance instance,
161 uint32_t request_id) = 0;
162 virtual void DecoderStopped(PP_Instance instance,
163 uint32_t request_id) = 0;
160 virtual void DeliverFrame(PP_Instance instance, 164 virtual void DeliverFrame(PP_Instance instance,
161 PP_Resource decrypted_frame, 165 PP_Resource decrypted_frame,
162 const PP_DecryptedFrameInfo* frame_info) = 0; 166 const PP_DecryptedFrameInfo* frame_info) = 0;
163 virtual void DeliverSamples(PP_Instance instance, 167 virtual void DeliverSamples(PP_Instance instance,
164 PP_Resource decrypted_samples, 168 PP_Resource decrypted_samples,
165 const PP_DecryptedBlockInfo* block_info) = 0; 169 const PP_DecryptedBlockInfo* block_info) = 0;
166 170
167 // URLUtil. 171 // URLUtil.
168 virtual PP_Var ResolveRelativeToDocument( 172 virtual PP_Var ResolveRelativeToDocument(
169 PP_Instance instance, 173 PP_Instance instance,
170 PP_Var relative, 174 PP_Var relative,
171 PP_URLComponents_Dev* components) = 0; 175 PP_URLComponents_Dev* components) = 0;
172 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) = 0; 176 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) = 0;
173 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance, 177 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance,
174 PP_Instance target) = 0; 178 PP_Instance target) = 0;
175 virtual PP_Var GetDocumentURL(PP_Instance instance, 179 virtual PP_Var GetDocumentURL(PP_Instance instance,
176 PP_URLComponents_Dev* components) = 0; 180 PP_URLComponents_Dev* components) = 0;
177 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, 181 virtual PP_Var GetPluginInstanceURL(PP_Instance instance,
178 PP_URLComponents_Dev* components) = 0; 182 PP_URLComponents_Dev* components) = 0;
179 #endif // !defined(OS_NACL) 183 #endif // !defined(OS_NACL)
180 184
181 static const ApiID kApiID = API_ID_PPB_INSTANCE; 185 static const ApiID kApiID = API_ID_PPB_INSTANCE;
182 }; 186 };
183 187
184 } // namespace thunk 188 } // namespace thunk
185 } // namespace ppapi 189 } // namespace ppapi
186 190
187 #endif // PPAPI_THUNK_INSTANCE_API_H_ 191 #endif // PPAPI_THUNK_INSTANCE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698