OLD | NEW |
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_url_util_dev.h" | 10 #include "ppapi/c/dev/ppb_url_util_dev.h" |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 PP_DecryptorStreamType decoder_type, | 166 PP_DecryptorStreamType decoder_type, |
167 uint32_t request_id) = 0; | 167 uint32_t request_id) = 0; |
168 virtual void DecoderResetDone(PP_Instance instance, | 168 virtual void DecoderResetDone(PP_Instance instance, |
169 PP_DecryptorStreamType decoder_type, | 169 PP_DecryptorStreamType decoder_type, |
170 uint32_t request_id) = 0; | 170 uint32_t request_id) = 0; |
171 virtual void DeliverFrame(PP_Instance instance, | 171 virtual void DeliverFrame(PP_Instance instance, |
172 PP_Resource decrypted_frame, | 172 PP_Resource decrypted_frame, |
173 const PP_DecryptedFrameInfo* frame_info) = 0; | 173 const PP_DecryptedFrameInfo* frame_info) = 0; |
174 virtual void DeliverSamples(PP_Instance instance, | 174 virtual void DeliverSamples(PP_Instance instance, |
175 PP_Resource audio_frames, | 175 PP_Resource audio_frames, |
176 const PP_DecryptedBlockInfo* block_info) = 0; | 176 const PP_DecryptedSampleInfo* sample_info) = 0; |
177 | 177 |
178 // URLUtil. | 178 // URLUtil. |
179 virtual PP_Var ResolveRelativeToDocument( | 179 virtual PP_Var ResolveRelativeToDocument( |
180 PP_Instance instance, | 180 PP_Instance instance, |
181 PP_Var relative, | 181 PP_Var relative, |
182 PP_URLComponents_Dev* components) = 0; | 182 PP_URLComponents_Dev* components) = 0; |
183 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) = 0; | 183 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) = 0; |
184 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance, | 184 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance, |
185 PP_Instance target) = 0; | 185 PP_Instance target) = 0; |
186 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, | 186 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, |
187 PP_URLComponents_Dev* components) = 0; | 187 PP_URLComponents_Dev* components) = 0; |
188 virtual PP_Var GetPluginReferrerURL(PP_Instance instance, | 188 virtual PP_Var GetPluginReferrerURL(PP_Instance instance, |
189 PP_URLComponents_Dev* components) = 0; | 189 PP_URLComponents_Dev* components) = 0; |
190 #endif // !defined(OS_NACL) | 190 #endif // !defined(OS_NACL) |
191 | 191 |
192 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 192 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
193 }; | 193 }; |
194 | 194 |
195 } // namespace thunk | 195 } // namespace thunk |
196 } // namespace ppapi | 196 } // namespace ppapi |
197 | 197 |
198 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 198 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
OLD | NEW |