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_net_connector_proxy.h" | 23 #include "ppapi/proxy/ppb_flash_net_connector_proxy.h" |
23 #include "ppapi/proxy/ppb_font_proxy.h" | 24 #include "ppapi/proxy/ppb_font_proxy.h" |
24 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" | 25 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" |
25 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" | 26 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" |
26 #include "ppapi/proxy/ppb_image_data_proxy.h" | 27 #include "ppapi/proxy/ppb_image_data_proxy.h" |
27 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h" | 28 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h" |
28 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h" | 29 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h" |
29 #include "ppapi/proxy/ppb_url_loader_proxy.h" | 30 #include "ppapi/proxy/ppb_url_loader_proxy.h" |
30 #include "ppapi/proxy/ppb_video_capture_proxy.h" | 31 #include "ppapi/proxy/ppb_video_capture_proxy.h" |
31 #include "ppapi/proxy/ppb_video_decoder_proxy.h" | 32 #include "ppapi/proxy/ppb_video_decoder_proxy.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 PP_FileSystemType type) { | 138 PP_FileSystemType type) { |
138 return PPB_FileSystem_Proxy::CreateProxyResource(instance, type); | 139 return PPB_FileSystem_Proxy::CreateProxyResource(instance, type); |
139 } | 140 } |
140 | 141 |
141 PP_Resource ResourceCreationProxy::CreateFlashMenu( | 142 PP_Resource ResourceCreationProxy::CreateFlashMenu( |
142 PP_Instance instance, | 143 PP_Instance instance, |
143 const PP_Flash_Menu* menu_data) { | 144 const PP_Flash_Menu* menu_data) { |
144 return PPB_Flash_Menu_Proxy::CreateProxyResource(instance, menu_data); | 145 return PPB_Flash_Menu_Proxy::CreateProxyResource(instance, menu_data); |
145 } | 146 } |
146 | 147 |
| 148 PP_Resource ResourceCreationProxy::CreateFlashMessageLoop( |
| 149 PP_Instance instance) { |
| 150 return PPB_Flash_MessageLoop_Proxy::CreateProxyResource(instance); |
| 151 } |
| 152 |
147 PP_Resource ResourceCreationProxy::CreateFlashNetConnector( | 153 PP_Resource ResourceCreationProxy::CreateFlashNetConnector( |
148 PP_Instance instance) { | 154 PP_Instance instance) { |
149 return PPB_Flash_NetConnector_Proxy::CreateProxyResource(instance); | 155 return PPB_Flash_NetConnector_Proxy::CreateProxyResource(instance); |
150 } | 156 } |
151 | 157 |
152 PP_Resource ResourceCreationProxy::CreateFontObject( | 158 PP_Resource ResourceCreationProxy::CreateFontObject( |
153 PP_Instance instance, | 159 PP_Instance instance, |
154 const PP_FontDescription_Dev* description) { | 160 const PP_FontDescription_Dev* description) { |
155 PluginDispatcher* dispatcher = | 161 PluginDispatcher* dispatcher = |
156 PluginDispatcher::GetForInstance(instance); | 162 PluginDispatcher::GetForInstance(instance); |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 bool ResourceCreationProxy::Send(IPC::Message* msg) { | 344 bool ResourceCreationProxy::Send(IPC::Message* msg) { |
339 return dispatcher()->Send(msg); | 345 return dispatcher()->Send(msg); |
340 } | 346 } |
341 | 347 |
342 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 348 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
343 return false; | 349 return false; |
344 } | 350 } |
345 | 351 |
346 } // namespace proxy | 352 } // namespace proxy |
347 } // namespace ppapi | 353 } // namespace ppapi |
OLD | NEW |