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

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: Address comments with the exception of renaming Deinit 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"
11 #include "ppapi/c/dev/ppb_text_input_dev.h" 11 #include "ppapi/c/dev/ppb_text_input_dev.h"
12 #include "ppapi/c/dev/ppb_url_util_dev.h" 12 #include "ppapi/c/dev/ppb_url_util_dev.h"
13 #include "ppapi/c/pp_bool.h" 13 #include "ppapi/c/pp_bool.h"
14 #include "ppapi/c/pp_completion_callback.h" 14 #include "ppapi/c/pp_completion_callback.h"
15 #include "ppapi/c/pp_size.h" 15 #include "ppapi/c/pp_size.h"
16 #include "ppapi/c/pp_time.h" 16 #include "ppapi/c/pp_time.h"
17 #include "ppapi/c/ppb_audio_config.h" 17 #include "ppapi/c/ppb_audio_config.h"
18 #include "ppapi/c/ppb_gamepad.h" 18 #include "ppapi/c/ppb_gamepad.h"
19 #include "ppapi/c/ppb_instance.h" 19 #include "ppapi/c/ppb_instance.h"
20 #include "ppapi/c/ppb_mouse_cursor.h" 20 #include "ppapi/c/ppb_mouse_cursor.h"
21 #include "ppapi/c/private/pp_content_decryptor.h"
21 #include "ppapi/c/private/ppb_instance_private.h" 22 #include "ppapi/c/private/ppb_instance_private.h"
22 #include "ppapi/shared_impl/api_id.h" 23 #include "ppapi/shared_impl/api_id.h"
23 24
24 // Windows headers interfere with this file. 25 // Windows headers interfere with this file.
25 #ifdef PostMessage 26 #ifdef PostMessage
26 #undef PostMessage 27 #undef PostMessage
27 #endif 28 #endif
28 29
29 struct PP_DecryptedBlockInfo; 30 struct PP_DecryptedBlockInfo;
30 struct PP_DecryptedFrameInfo; 31 struct PP_DecryptedFrameInfo;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 PP_Var key_system, 158 PP_Var key_system,
158 PP_Var session_id, 159 PP_Var session_id,
159 int32_t media_error, 160 int32_t media_error,
160 int32_t system_error) = 0; 161 int32_t system_error) = 0;
161 virtual void DeliverBlock(PP_Instance instance, 162 virtual void DeliverBlock(PP_Instance instance,
162 PP_Resource decrypted_block, 163 PP_Resource decrypted_block,
163 const PP_DecryptedBlockInfo* block_info) = 0; 164 const PP_DecryptedBlockInfo* block_info) = 0;
164 virtual void DecoderInitialized(PP_Instance instance, 165 virtual void DecoderInitialized(PP_Instance instance,
165 PP_Bool success, 166 PP_Bool success,
166 uint32_t request_id) = 0; 167 uint32_t request_id) = 0;
168 virtual void DecoderDeinitializeDone(PP_Instance instance,
169 PP_DecryptorStreamType decoder_type,
170 uint32_t request_id) = 0;
171 virtual void DecoderResetDone(PP_Instance instance,
172 PP_DecryptorStreamType decoder_type,
173 uint32_t request_id) = 0;
167 virtual void DeliverFrame(PP_Instance instance, 174 virtual void DeliverFrame(PP_Instance instance,
168 PP_Resource decrypted_frame, 175 PP_Resource decrypted_frame,
169 const PP_DecryptedFrameInfo* frame_info) = 0; 176 const PP_DecryptedFrameInfo* frame_info) = 0;
170 virtual void DeliverSamples(PP_Instance instance, 177 virtual void DeliverSamples(PP_Instance instance,
171 PP_Resource decrypted_samples, 178 PP_Resource decrypted_samples,
172 const PP_DecryptedBlockInfo* block_info) = 0; 179 const PP_DecryptedBlockInfo* block_info) = 0;
173 180
174 // URLUtil. 181 // URLUtil.
175 virtual PP_Var ResolveRelativeToDocument( 182 virtual PP_Var ResolveRelativeToDocument(
176 PP_Instance instance, 183 PP_Instance instance,
177 PP_Var relative, 184 PP_Var relative,
178 PP_URLComponents_Dev* components) = 0; 185 PP_URLComponents_Dev* components) = 0;
179 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) = 0; 186 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) = 0;
180 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance, 187 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance,
181 PP_Instance target) = 0; 188 PP_Instance target) = 0;
182 virtual PP_Var GetDocumentURL(PP_Instance instance, 189 virtual PP_Var GetDocumentURL(PP_Instance instance,
183 PP_URLComponents_Dev* components) = 0; 190 PP_URLComponents_Dev* components) = 0;
184 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, 191 virtual PP_Var GetPluginInstanceURL(PP_Instance instance,
185 PP_URLComponents_Dev* components) = 0; 192 PP_URLComponents_Dev* components) = 0;
186 #endif // !defined(OS_NACL) 193 #endif // !defined(OS_NACL)
187 194
188 static const ApiID kApiID = API_ID_PPB_INSTANCE; 195 static const ApiID kApiID = API_ID_PPB_INSTANCE;
189 }; 196 };
190 197
191 } // namespace thunk 198 } // namespace thunk
192 } // namespace ppapi 199 } // namespace ppapi
193 200
194 #endif // PPAPI_THUNK_INSTANCE_API_H_ 201 #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