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_image_data_shared.h" | 9 #include "ppapi/shared_impl/ppb_image_data_shared.h" |
10 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 10 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
11 #include "ppapi/shared_impl/ppb_resource_array_shared.h" | 11 #include "ppapi/shared_impl/ppb_resource_array_shared.h" |
12 #include "ppapi/shared_impl/var.h" | 12 #include "ppapi/shared_impl/var.h" |
13 #include "webkit/plugins/ppapi/common.h" | 13 #include "webkit/plugins/ppapi/common.h" |
14 #include "webkit/plugins/ppapi/ppb_audio_impl.h" | 14 #include "webkit/plugins/ppapi/ppb_audio_impl.h" |
15 #include "webkit/plugins/ppapi/ppb_broker_impl.h" | 15 #include "webkit/plugins/ppapi/ppb_broker_impl.h" |
16 #include "webkit/plugins/ppapi/ppb_buffer_impl.h" | 16 #include "webkit/plugins/ppapi/ppb_buffer_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_flash_message_loop_impl.h" | 18 #include "webkit/plugins/ppapi/ppb_flash_message_loop_impl.h" |
19 #include "webkit/plugins/ppapi/ppb_graphics_3d_impl.h" | 19 #include "webkit/plugins/ppapi/ppb_graphics_3d_impl.h" |
20 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" | 20 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" |
21 #include "webkit/plugins/ppapi/ppb_network_monitor_private_impl.h" | 21 #include "webkit/plugins/ppapi/ppb_network_monitor_private_impl.h" |
22 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" | 22 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" |
23 #include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h" | |
24 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" | 23 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" |
25 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" | 24 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" |
26 #include "webkit/plugins/ppapi/ppb_x509_certificate_private_impl.h" | 25 #include "webkit/plugins/ppapi/ppb_x509_certificate_private_impl.h" |
27 #include "webkit/plugins/ppapi/resource_helper.h" | 26 #include "webkit/plugins/ppapi/resource_helper.h" |
28 | 27 |
29 using ppapi::InputEventData; | 28 using ppapi::InputEventData; |
30 using ppapi::PPB_InputEvent_Shared; | 29 using ppapi::PPB_InputEvent_Shared; |
31 using ppapi::PPB_ResourceArray_Shared; | 30 using ppapi::PPB_ResourceArray_Shared; |
32 using ppapi::StringVar; | 31 using ppapi::StringVar; |
33 | 32 |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 PP_Instance instance, | 248 PP_Instance instance, |
250 const PP_Resource elements[], | 249 const PP_Resource elements[], |
251 uint32_t size) { | 250 uint32_t size) { |
252 PPB_ResourceArray_Shared* object = new PPB_ResourceArray_Shared( | 251 PPB_ResourceArray_Shared* object = new PPB_ResourceArray_Shared( |
253 ::ppapi::OBJECT_IS_IMPL, instance, elements, size); | 252 ::ppapi::OBJECT_IS_IMPL, instance, elements, size); |
254 return object->GetReference(); | 253 return object->GetReference(); |
255 } | 254 } |
256 | 255 |
257 PP_Resource ResourceCreationImpl::CreateTCPServerSocketPrivate( | 256 PP_Resource ResourceCreationImpl::CreateTCPServerSocketPrivate( |
258 PP_Instance instance) { | 257 PP_Instance instance) { |
259 return PPB_TCPServerSocket_Private_Impl::CreateResource(instance); | 258 return 0; // Not supported in-process. |
260 } | 259 } |
261 | 260 |
262 PP_Resource ResourceCreationImpl::CreateTCPSocket(PP_Instance instance) { | 261 PP_Resource ResourceCreationImpl::CreateTCPSocket(PP_Instance instance) { |
263 return 0; // Not supported in-process. | 262 return 0; // Not supported in-process. |
264 } | 263 } |
265 | 264 |
266 PP_Resource ResourceCreationImpl::CreateTCPSocketPrivate(PP_Instance instance) { | 265 PP_Resource ResourceCreationImpl::CreateTCPSocketPrivate(PP_Instance instance) { |
267 return PPB_TCPSocket_Private_Impl::CreateResource(instance); | 266 return PPB_TCPSocket_Private_Impl::CreateResource(instance); |
268 } | 267 } |
269 | 268 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 wheel_delta, wheel_ticks, scroll_by_page); | 307 wheel_delta, wheel_ticks, scroll_by_page); |
309 } | 308 } |
310 | 309 |
311 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 310 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
312 PP_Instance instance) { | 311 PP_Instance instance) { |
313 return PPB_X509Certificate_Private_Impl::CreateResource(instance); | 312 return PPB_X509Certificate_Private_Impl::CreateResource(instance); |
314 } | 313 } |
315 | 314 |
316 } // namespace ppapi | 315 } // namespace ppapi |
317 } // namespace webkit | 316 } // namespace webkit |
OLD | NEW |