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

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

Powered by Google App Engine
This is Rietveld 408576698