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/private/ppb_browser_font_trusted_shared.h" | 9 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h" |
10 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 10 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "webkit/plugins/ppapi/ppb_flash_menu_impl.h" | 23 #include "webkit/plugins/ppapi/ppb_flash_menu_impl.h" |
24 #include "webkit/plugins/ppapi/ppb_flash_message_loop_impl.h" | 24 #include "webkit/plugins/ppapi/ppb_flash_message_loop_impl.h" |
25 #include "webkit/plugins/ppapi/ppb_graphics_2d_impl.h" | 25 #include "webkit/plugins/ppapi/ppb_graphics_2d_impl.h" |
26 #include "webkit/plugins/ppapi/ppb_graphics_3d_impl.h" | 26 #include "webkit/plugins/ppapi/ppb_graphics_3d_impl.h" |
27 #include "webkit/plugins/ppapi/ppb_host_resolver_private_impl.h" | 27 #include "webkit/plugins/ppapi/ppb_host_resolver_private_impl.h" |
28 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" | 28 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" |
29 #include "webkit/plugins/ppapi/ppb_network_monitor_private_impl.h" | 29 #include "webkit/plugins/ppapi/ppb_network_monitor_private_impl.h" |
30 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" | 30 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" |
31 #include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h" | 31 #include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h" |
32 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" | 32 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" |
33 #include "webkit/plugins/ppapi/ppb_transport_impl.h" | |
34 #include "webkit/plugins/ppapi/ppb_udp_socket_private_impl.h" | 33 #include "webkit/plugins/ppapi/ppb_udp_socket_private_impl.h" |
35 #include "webkit/plugins/ppapi/ppb_url_loader_impl.h" | 34 #include "webkit/plugins/ppapi/ppb_url_loader_impl.h" |
36 #include "webkit/plugins/ppapi/ppb_url_request_info_impl.h" | 35 #include "webkit/plugins/ppapi/ppb_url_request_info_impl.h" |
37 #include "webkit/plugins/ppapi/ppb_video_capture_impl.h" | 36 #include "webkit/plugins/ppapi/ppb_video_capture_impl.h" |
38 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" | 37 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" |
39 #include "webkit/plugins/ppapi/ppb_video_layer_impl.h" | 38 #include "webkit/plugins/ppapi/ppb_video_layer_impl.h" |
40 #include "webkit/plugins/ppapi/ppb_websocket_impl.h" | 39 #include "webkit/plugins/ppapi/ppb_websocket_impl.h" |
41 #include "webkit/plugins/ppapi/ppb_x509_certificate_private_impl.h" | 40 #include "webkit/plugins/ppapi/ppb_x509_certificate_private_impl.h" |
42 #include "webkit/plugins/ppapi/resource_helper.h" | 41 #include "webkit/plugins/ppapi/resource_helper.h" |
43 | 42 |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 | 250 |
252 PP_Resource ResourceCreationImpl::CreateTCPServerSocketPrivate( | 251 PP_Resource ResourceCreationImpl::CreateTCPServerSocketPrivate( |
253 PP_Instance instance) { | 252 PP_Instance instance) { |
254 return PPB_TCPServerSocket_Private_Impl::CreateResource(instance); | 253 return PPB_TCPServerSocket_Private_Impl::CreateResource(instance); |
255 } | 254 } |
256 | 255 |
257 PP_Resource ResourceCreationImpl::CreateTCPSocketPrivate(PP_Instance instance) { | 256 PP_Resource ResourceCreationImpl::CreateTCPSocketPrivate(PP_Instance instance) { |
258 return PPB_TCPSocket_Private_Impl::CreateResource(instance); | 257 return PPB_TCPSocket_Private_Impl::CreateResource(instance); |
259 } | 258 } |
260 | 259 |
261 PP_Resource ResourceCreationImpl::CreateTransport(PP_Instance instance, | |
262 const char* name, | |
263 PP_TransportType type) { | |
264 #if defined(ENABLE_P2P_APIS) | |
265 return PPB_Transport_Impl::Create(instance, name, type); | |
266 #else | |
267 return 0; | |
268 #endif | |
269 } | |
270 | |
271 PP_Resource ResourceCreationImpl::CreateUDPSocketPrivate(PP_Instance instance) { | 260 PP_Resource ResourceCreationImpl::CreateUDPSocketPrivate(PP_Instance instance) { |
272 return PPB_UDPSocket_Private_Impl::CreateResource(instance); | 261 return PPB_UDPSocket_Private_Impl::CreateResource(instance); |
273 } | 262 } |
274 | 263 |
275 PP_Resource ResourceCreationImpl::CreateURLLoader(PP_Instance instance) { | 264 PP_Resource ResourceCreationImpl::CreateURLLoader(PP_Instance instance) { |
276 return (new PPB_URLLoader_Impl(instance, false))->GetReference(); | 265 return (new PPB_URLLoader_Impl(instance, false))->GetReference(); |
277 } | 266 } |
278 | 267 |
279 PP_Resource ResourceCreationImpl::CreateURLRequestInfo( | 268 PP_Resource ResourceCreationImpl::CreateURLRequestInfo( |
280 PP_Instance instance, | 269 PP_Instance instance, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 wheel_delta, wheel_ticks, scroll_by_page); | 307 wheel_delta, wheel_ticks, scroll_by_page); |
319 } | 308 } |
320 | 309 |
321 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 310 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
322 PP_Instance instance) { | 311 PP_Instance instance) { |
323 return PPB_X509Certificate_Private_Impl::CreateResource(instance); | 312 return PPB_X509Certificate_Private_Impl::CreateResource(instance); |
324 } | 313 } |
325 | 314 |
326 } // namespace ppapi | 315 } // namespace ppapi |
327 } // namespace webkit | 316 } // namespace webkit |
OLD | NEW |