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/interface_list.h" | 5 #include "ppapi/proxy/interface_list.h" |
6 | 6 |
7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
8 #include "ppapi/c/dev/ppb_audio_input_dev.h" | 8 #include "ppapi/c/dev/ppb_audio_input_dev.h" |
9 #include "ppapi/c/dev/ppb_buffer_dev.h" | 9 #include "ppapi/c/dev/ppb_buffer_dev.h" |
10 #include "ppapi/c/dev/ppb_char_set_dev.h" | 10 #include "ppapi/c/dev/ppb_char_set_dev.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include "ppapi/c/ppb_var.h" | 44 #include "ppapi/c/ppb_var.h" |
45 #include "ppapi/c/ppb_view.h" | 45 #include "ppapi/c/ppb_view.h" |
46 #include "ppapi/c/pp_errors.h" | 46 #include "ppapi/c/pp_errors.h" |
47 #include "ppapi/c/ppp_instance.h" | 47 #include "ppapi/c/ppp_instance.h" |
48 #include "ppapi/c/private/ppb_file_ref_private.h" | 48 #include "ppapi/c/private/ppb_file_ref_private.h" |
49 #include "ppapi/c/private/ppb_flash_clipboard.h" | 49 #include "ppapi/c/private/ppb_flash_clipboard.h" |
50 #include "ppapi/c/private/ppb_flash_file.h" | 50 #include "ppapi/c/private/ppb_flash_file.h" |
51 #include "ppapi/c/private/ppb_flash_fullscreen.h" | 51 #include "ppapi/c/private/ppb_flash_fullscreen.h" |
52 #include "ppapi/c/private/ppb_flash.h" | 52 #include "ppapi/c/private/ppb_flash.h" |
53 #include "ppapi/c/private/ppb_flash_menu.h" | 53 #include "ppapi/c/private/ppb_flash_menu.h" |
| 54 #include "ppapi/c/private/ppb_flash_message_loop.h" |
54 #include "ppapi/c/private/ppb_flash_net_connector.h" | 55 #include "ppapi/c/private/ppb_flash_net_connector.h" |
55 #include "ppapi/c/private/ppb_flash_tcp_socket.h" | 56 #include "ppapi/c/private/ppb_flash_tcp_socket.h" |
56 #include "ppapi/c/private/ppb_net_address_private.h" | 57 #include "ppapi/c/private/ppb_net_address_private.h" |
57 #include "ppapi/c/private/ppb_pdf.h" | 58 #include "ppapi/c/private/ppb_pdf.h" |
58 #include "ppapi/c/private/ppb_tcp_socket_private.h" | 59 #include "ppapi/c/private/ppb_tcp_socket_private.h" |
59 #include "ppapi/c/private/ppb_udp_socket_private.h" | 60 #include "ppapi/c/private/ppb_udp_socket_private.h" |
60 #include "ppapi/c/trusted/ppb_broker_trusted.h" | 61 #include "ppapi/c/trusted/ppb_broker_trusted.h" |
61 #include "ppapi/c/trusted/ppb_file_io_trusted.h" | 62 #include "ppapi/c/trusted/ppb_file_io_trusted.h" |
62 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" | 63 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" |
63 #include "ppapi/proxy/interface_proxy.h" | 64 #include "ppapi/proxy/interface_proxy.h" |
64 #include "ppapi/proxy/ppb_audio_input_proxy.h" | 65 #include "ppapi/proxy/ppb_audio_input_proxy.h" |
65 #include "ppapi/proxy/ppb_audio_proxy.h" | 66 #include "ppapi/proxy/ppb_audio_proxy.h" |
66 #include "ppapi/proxy/ppb_broker_proxy.h" | 67 #include "ppapi/proxy/ppb_broker_proxy.h" |
67 #include "ppapi/proxy/ppb_buffer_proxy.h" | 68 #include "ppapi/proxy/ppb_buffer_proxy.h" |
68 #include "ppapi/proxy/ppb_core_proxy.h" | 69 #include "ppapi/proxy/ppb_core_proxy.h" |
69 #include "ppapi/proxy/ppb_cursor_control_proxy.h" | 70 #include "ppapi/proxy/ppb_cursor_control_proxy.h" |
70 #include "ppapi/proxy/ppb_file_chooser_proxy.h" | 71 #include "ppapi/proxy/ppb_file_chooser_proxy.h" |
71 #include "ppapi/proxy/ppb_file_io_proxy.h" | 72 #include "ppapi/proxy/ppb_file_io_proxy.h" |
72 #include "ppapi/proxy/ppb_file_ref_proxy.h" | 73 #include "ppapi/proxy/ppb_file_ref_proxy.h" |
73 #include "ppapi/proxy/ppb_file_system_proxy.h" | 74 #include "ppapi/proxy/ppb_file_system_proxy.h" |
74 #include "ppapi/proxy/ppb_flash_clipboard_proxy.h" | 75 #include "ppapi/proxy/ppb_flash_clipboard_proxy.h" |
75 #include "ppapi/proxy/ppb_flash_file_proxy.h" | 76 #include "ppapi/proxy/ppb_flash_file_proxy.h" |
76 #include "ppapi/proxy/ppb_flash_menu_proxy.h" | 77 #include "ppapi/proxy/ppb_flash_menu_proxy.h" |
| 78 #include "ppapi/proxy/ppb_flash_message_loop_proxy.h" |
77 #include "ppapi/proxy/ppb_flash_net_connector_proxy.h" | 79 #include "ppapi/proxy/ppb_flash_net_connector_proxy.h" |
78 #include "ppapi/proxy/ppb_flash_proxy.h" | 80 #include "ppapi/proxy/ppb_flash_proxy.h" |
79 #include "ppapi/proxy/ppb_font_proxy.h" | 81 #include "ppapi/proxy/ppb_font_proxy.h" |
80 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" | 82 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" |
81 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" | 83 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" |
82 #include "ppapi/proxy/ppb_image_data_proxy.h" | 84 #include "ppapi/proxy/ppb_image_data_proxy.h" |
83 #include "ppapi/proxy/ppb_instance_proxy.h" | 85 #include "ppapi/proxy/ppb_instance_proxy.h" |
84 #include "ppapi/proxy/ppb_message_loop_proxy.h" | 86 #include "ppapi/proxy/ppb_message_loop_proxy.h" |
85 #include "ppapi/proxy/ppb_pdf_proxy.h" | 87 #include "ppapi/proxy/ppb_pdf_proxy.h" |
86 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h" | 88 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h" |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 AddProxy(API_ID_PPB_FLASH_FILE_MODULELOCAL, | 282 AddProxy(API_ID_PPB_FLASH_FILE_MODULELOCAL, |
281 &ProxyFactory<PPB_Flash_File_ModuleLocal_Proxy>); | 283 &ProxyFactory<PPB_Flash_File_ModuleLocal_Proxy>); |
282 AddPPB(PPB_FLASH_FILE_MODULELOCAL_INTERFACE, | 284 AddPPB(PPB_FLASH_FILE_MODULELOCAL_INTERFACE, |
283 API_ID_PPB_FLASH_FILE_MODULELOCAL, | 285 API_ID_PPB_FLASH_FILE_MODULELOCAL, |
284 PPB_Flash_File_ModuleLocal_Proxy::GetInterface()); | 286 PPB_Flash_File_ModuleLocal_Proxy::GetInterface()); |
285 | 287 |
286 AddProxy(API_ID_PPB_FLASH_MENU, &ProxyFactory<PPB_Flash_Menu_Proxy>); | 288 AddProxy(API_ID_PPB_FLASH_MENU, &ProxyFactory<PPB_Flash_Menu_Proxy>); |
287 AddPPB(PPB_FLASH_MENU_INTERFACE_0_2, API_ID_PPB_FLASH_MENU, | 289 AddPPB(PPB_FLASH_MENU_INTERFACE_0_2, API_ID_PPB_FLASH_MENU, |
288 thunk::GetPPB_Flash_Menu_0_2_Thunk()); | 290 thunk::GetPPB_Flash_Menu_0_2_Thunk()); |
289 | 291 |
| 292 AddProxy(API_ID_PPB_FLASH_MESSAGELOOP, |
| 293 &ProxyFactory<PPB_Flash_MessageLoop_Proxy>); |
| 294 AddPPB(PPB_FLASH_MESSAGELOOP_INTERFACE_0_1, API_ID_PPB_FLASH_MESSAGELOOP, |
| 295 thunk::GetPPB_Flash_MessageLoop_0_1_Thunk()); |
| 296 |
290 // Only add the interface; PPB_TCPSocket_Private provides the API ID's proxy. | 297 // Only add the interface; PPB_TCPSocket_Private provides the API ID's proxy. |
291 AddPPB(PPB_FLASH_TCPSOCKET_INTERFACE_0_2, API_ID_PPB_TCPSOCKET_PRIVATE, | 298 AddPPB(PPB_FLASH_TCPSOCKET_INTERFACE_0_2, API_ID_PPB_TCPSOCKET_PRIVATE, |
292 thunk::GetPPB_TCPSocket_Private_0_3_Thunk()); | 299 thunk::GetPPB_TCPSocket_Private_0_3_Thunk()); |
293 | 300 |
294 #ifdef ENABLE_FLAPPER_HACKS | 301 #ifdef ENABLE_FLAPPER_HACKS |
295 AddProxy(API_ID_PPB_FLASH_NETCONNECTOR, | 302 AddProxy(API_ID_PPB_FLASH_NETCONNECTOR, |
296 &ProxyFactory<PPB_Flash_NetConnector_Proxy>); | 303 &ProxyFactory<PPB_Flash_NetConnector_Proxy>); |
297 AddPPB(PPB_FLASH_NETCONNECTOR_INTERFACE_0_2, API_ID_PPB_FLASH_NETCONNECTOR, | 304 AddPPB(PPB_FLASH_NETCONNECTOR_INTERFACE_0_2, API_ID_PPB_FLASH_NETCONNECTOR, |
298 thunk::GetPPB_Flash_NetConnector_0_2_Thunk()); | 305 thunk::GetPPB_Flash_NetConnector_0_2_Thunk()); |
299 #endif | 306 #endif |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 AddPPB(info->name, info->id, info->interface_ptr); | 341 AddPPB(info->name, info->id, info->interface_ptr); |
335 } | 342 } |
336 | 343 |
337 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { | 344 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { |
338 AddProxy(info->id, info->create_proxy); | 345 AddProxy(info->id, info->create_proxy); |
339 AddPPP(info->name, info->id, info->interface_ptr); | 346 AddPPP(info->name, info->id, info->interface_ptr); |
340 } | 347 } |
341 | 348 |
342 } // namespace proxy | 349 } // namespace proxy |
343 } // namespace ppapi | 350 } // namespace ppapi |
OLD | NEW |