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 #include "webkit/plugins/ppapi/resource_creation_impl.h" | 5 #include "webkit/plugins/ppapi/resource_creation_impl.h" |
6 | 6 |
7 #include "ppapi/c/pp_size.h" | 7 #include "ppapi/c/pp_size.h" |
8 #include "ppapi/shared_impl/ppb_audio_config_shared.h" | 8 #include "ppapi/shared_impl/ppb_audio_config_shared.h" |
9 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 9 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
10 #include "ppapi/shared_impl/ppb_resource_array_shared.h" | 10 #include "ppapi/shared_impl/ppb_resource_array_shared.h" |
11 #include "ppapi/shared_impl/var.h" | 11 #include "ppapi/shared_impl/var.h" |
12 #include "webkit/plugins/ppapi/common.h" | 12 #include "webkit/plugins/ppapi/common.h" |
13 #include "webkit/plugins/ppapi/ppb_audio_impl.h" | 13 #include "webkit/plugins/ppapi/ppb_audio_impl.h" |
14 #include "webkit/plugins/ppapi/ppb_broker_impl.h" | 14 #include "webkit/plugins/ppapi/ppb_broker_impl.h" |
15 #include "webkit/plugins/ppapi/ppb_buffer_impl.h" | 15 #include "webkit/plugins/ppapi/ppb_buffer_impl.h" |
16 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h" | 16 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h" |
17 #include "webkit/plugins/ppapi/ppb_file_ref_impl.h" | 17 #include "webkit/plugins/ppapi/ppb_file_ref_impl.h" |
18 #include "webkit/plugins/ppapi/ppb_file_system_impl.h" | 18 #include "webkit/plugins/ppapi/ppb_file_system_impl.h" |
19 #include "webkit/plugins/ppapi/ppb_flash_message_loop_impl.h" | 19 #include "webkit/plugins/ppapi/ppb_flash_message_loop_impl.h" |
20 #include "webkit/plugins/ppapi/ppb_graphics_3d_impl.h" | 20 #include "webkit/plugins/ppapi/ppb_graphics_3d_impl.h" |
21 #include "webkit/plugins/ppapi/ppb_host_resolver_private_impl.h" | 21 #include "webkit/plugins/ppapi/ppb_host_resolver_private_impl.h" |
22 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" | 22 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" |
23 #include "webkit/plugins/ppapi/ppb_network_monitor_private_impl.h" | 23 #include "webkit/plugins/ppapi/ppb_network_monitor_private_impl.h" |
24 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" | 24 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" |
25 #include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h" | 25 #include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h" |
26 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" | 26 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" |
27 #include "webkit/plugins/ppapi/ppb_udp_socket_private_impl.h" | |
28 #include "webkit/plugins/ppapi/ppb_url_loader_impl.h" | 27 #include "webkit/plugins/ppapi/ppb_url_loader_impl.h" |
29 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" | 28 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" |
30 #include "webkit/plugins/ppapi/ppb_x509_certificate_private_impl.h" | 29 #include "webkit/plugins/ppapi/ppb_x509_certificate_private_impl.h" |
31 #include "webkit/plugins/ppapi/resource_helper.h" | 30 #include "webkit/plugins/ppapi/resource_helper.h" |
32 | 31 |
33 using ppapi::InputEventData; | 32 using ppapi::InputEventData; |
34 using ppapi::PPB_InputEvent_Shared; | 33 using ppapi::PPB_InputEvent_Shared; |
35 using ppapi::PPB_ResourceArray_Shared; | 34 using ppapi::PPB_ResourceArray_Shared; |
36 using ppapi::StringVar; | 35 using ppapi::StringVar; |
37 | 36 |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 | 228 |
230 PP_Resource ResourceCreationImpl::CreateTCPServerSocketPrivate( | 229 PP_Resource ResourceCreationImpl::CreateTCPServerSocketPrivate( |
231 PP_Instance instance) { | 230 PP_Instance instance) { |
232 return PPB_TCPServerSocket_Private_Impl::CreateResource(instance); | 231 return PPB_TCPServerSocket_Private_Impl::CreateResource(instance); |
233 } | 232 } |
234 | 233 |
235 PP_Resource ResourceCreationImpl::CreateTCPSocketPrivate(PP_Instance instance) { | 234 PP_Resource ResourceCreationImpl::CreateTCPSocketPrivate(PP_Instance instance) { |
236 return PPB_TCPSocket_Private_Impl::CreateResource(instance); | 235 return PPB_TCPSocket_Private_Impl::CreateResource(instance); |
237 } | 236 } |
238 | 237 |
239 PP_Resource ResourceCreationImpl::CreateUDPSocketPrivate(PP_Instance instance) { | |
240 return PPB_UDPSocket_Private_Impl::CreateResource(instance); | |
241 } | |
242 | |
243 PP_Resource ResourceCreationImpl::CreateURLLoader(PP_Instance instance) { | 238 PP_Resource ResourceCreationImpl::CreateURLLoader(PP_Instance instance) { |
244 return (new PPB_URLLoader_Impl(instance, false))->GetReference(); | 239 return (new PPB_URLLoader_Impl(instance, false))->GetReference(); |
245 } | 240 } |
246 | 241 |
247 PP_Resource ResourceCreationImpl::CreateVideoCapture(PP_Instance instance) { | 242 PP_Resource ResourceCreationImpl::CreateVideoCapture(PP_Instance instance) { |
248 return 0; // VideoCapture is not supported in process now. | 243 return 0; // VideoCapture is not supported in process now. |
249 } | 244 } |
250 | 245 |
251 PP_Resource ResourceCreationImpl::CreateVideoDecoder( | 246 PP_Resource ResourceCreationImpl::CreateVideoDecoder( |
252 PP_Instance instance, | 247 PP_Instance instance, |
(...skipping 14 matching lines...) Expand all Loading... |
267 wheel_delta, wheel_ticks, scroll_by_page); | 262 wheel_delta, wheel_ticks, scroll_by_page); |
268 } | 263 } |
269 | 264 |
270 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 265 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
271 PP_Instance instance) { | 266 PP_Instance instance) { |
272 return PPB_X509Certificate_Private_Impl::CreateResource(instance); | 267 return PPB_X509Certificate_Private_Impl::CreateResource(instance); |
273 } | 268 } |
274 | 269 |
275 } // namespace ppapi | 270 } // namespace ppapi |
276 } // namespace webkit | 271 } // namespace webkit |
OLD | NEW |