| 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 "ppapi/proxy/resource_creation_proxy.h" | 5 #include "ppapi/proxy/resource_creation_proxy.h" |
| 6 | 6 |
| 7 #include "ppapi/c/pp_errors.h" | 7 #include "ppapi/c/pp_errors.h" |
| 8 #include "ppapi/c/pp_size.h" | 8 #include "ppapi/c/pp_size.h" |
| 9 #include "ppapi/c/trusted/ppb_image_data_trusted.h" | 9 #include "ppapi/c/trusted/ppb_image_data_trusted.h" |
| 10 #include "ppapi/proxy/plugin_dispatcher.h" | 10 #include "ppapi/proxy/plugin_dispatcher.h" |
| 11 #include "ppapi/proxy/plugin_resource_tracker.h" | 11 #include "ppapi/proxy/plugin_resource_tracker.h" |
| 12 #include "ppapi/proxy/ppapi_messages.h" | 12 #include "ppapi/proxy/ppapi_messages.h" |
| 13 #include "ppapi/proxy/ppb_audio_input_proxy.h" | 13 #include "ppapi/proxy/ppb_audio_input_proxy.h" |
| 14 #include "ppapi/proxy/ppb_audio_proxy.h" | 14 #include "ppapi/proxy/ppb_audio_proxy.h" |
| 15 #include "ppapi/proxy/ppb_buffer_proxy.h" | 15 #include "ppapi/proxy/ppb_buffer_proxy.h" |
| 16 #include "ppapi/proxy/ppb_broker_proxy.h" | 16 #include "ppapi/proxy/ppb_broker_proxy.h" |
| 17 #include "ppapi/proxy/ppb_file_chooser_proxy.h" | 17 #include "ppapi/proxy/ppb_file_chooser_proxy.h" |
| 18 #include "ppapi/proxy/ppb_file_io_proxy.h" | 18 #include "ppapi/proxy/ppb_file_io_proxy.h" |
| 19 #include "ppapi/proxy/ppb_file_ref_proxy.h" | 19 #include "ppapi/proxy/ppb_file_ref_proxy.h" |
| 20 #include "ppapi/proxy/ppb_file_system_proxy.h" | 20 #include "ppapi/proxy/ppb_file_system_proxy.h" |
| 21 #include "ppapi/proxy/ppb_flash_menu_proxy.h" | 21 #include "ppapi/proxy/ppb_flash_menu_proxy.h" |
| 22 #include "ppapi/proxy/ppb_flash_message_loop_proxy.h" | 22 #include "ppapi/proxy/ppb_flash_message_loop_proxy.h" |
| 23 #include "ppapi/proxy/ppb_flash_net_connector_proxy.h" | |
| 24 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" | 23 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" |
| 25 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" | 24 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" |
| 26 #include "ppapi/proxy/ppb_host_resolver_private_proxy.h" | 25 #include "ppapi/proxy/ppb_host_resolver_private_proxy.h" |
| 27 #include "ppapi/proxy/ppb_image_data_proxy.h" | 26 #include "ppapi/proxy/ppb_image_data_proxy.h" |
| 28 #include "ppapi/proxy/ppb_network_monitor_private_proxy.h" | 27 #include "ppapi/proxy/ppb_network_monitor_private_proxy.h" |
| 29 #include "ppapi/proxy/ppb_talk_private_proxy.h" | 28 #include "ppapi/proxy/ppb_talk_private_proxy.h" |
| 30 #include "ppapi/proxy/ppb_tcp_server_socket_private_proxy.h" | 29 #include "ppapi/proxy/ppb_tcp_server_socket_private_proxy.h" |
| 31 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h" | 30 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h" |
| 32 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h" | 31 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h" |
| 33 #include "ppapi/proxy/ppb_url_loader_proxy.h" | 32 #include "ppapi/proxy/ppb_url_loader_proxy.h" |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 PP_Resource ResourceCreationProxy::CreateFlashMenu( | 154 PP_Resource ResourceCreationProxy::CreateFlashMenu( |
| 156 PP_Instance instance, | 155 PP_Instance instance, |
| 157 const PP_Flash_Menu* menu_data) { | 156 const PP_Flash_Menu* menu_data) { |
| 158 return PPB_Flash_Menu_Proxy::CreateProxyResource(instance, menu_data); | 157 return PPB_Flash_Menu_Proxy::CreateProxyResource(instance, menu_data); |
| 159 } | 158 } |
| 160 | 159 |
| 161 PP_Resource ResourceCreationProxy::CreateFlashMessageLoop( | 160 PP_Resource ResourceCreationProxy::CreateFlashMessageLoop( |
| 162 PP_Instance instance) { | 161 PP_Instance instance) { |
| 163 return PPB_Flash_MessageLoop_Proxy::CreateProxyResource(instance); | 162 return PPB_Flash_MessageLoop_Proxy::CreateProxyResource(instance); |
| 164 } | 163 } |
| 165 | |
| 166 PP_Resource ResourceCreationProxy::CreateFlashNetConnector( | |
| 167 PP_Instance instance) { | |
| 168 return PPB_Flash_NetConnector_Proxy::CreateProxyResource(instance); | |
| 169 } | |
| 170 #endif // !defined(OS_NACL) | 164 #endif // !defined(OS_NACL) |
| 171 | 165 |
| 172 PP_Resource ResourceCreationProxy::CreateGraphics2D(PP_Instance instance, | 166 PP_Resource ResourceCreationProxy::CreateGraphics2D(PP_Instance instance, |
| 173 const PP_Size& size, | 167 const PP_Size& size, |
| 174 PP_Bool is_always_opaque) { | 168 PP_Bool is_always_opaque) { |
| 175 return PPB_Graphics2D_Proxy::CreateProxyResource(instance, size, | 169 return PPB_Graphics2D_Proxy::CreateProxyResource(instance, size, |
| 176 is_always_opaque); | 170 is_always_opaque); |
| 177 } | 171 } |
| 178 | 172 |
| 179 PP_Resource ResourceCreationProxy::CreateHostResolverPrivate( | 173 PP_Resource ResourceCreationProxy::CreateHostResolverPrivate( |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 bool ResourceCreationProxy::Send(IPC::Message* msg) { | 367 bool ResourceCreationProxy::Send(IPC::Message* msg) { |
| 374 return dispatcher()->Send(msg); | 368 return dispatcher()->Send(msg); |
| 375 } | 369 } |
| 376 | 370 |
| 377 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 371 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
| 378 return false; | 372 return false; |
| 379 } | 373 } |
| 380 | 374 |
| 381 } // namespace proxy | 375 } // namespace proxy |
| 382 } // namespace ppapi | 376 } // namespace ppapi |
| OLD | NEW |