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