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" |
11 #include "ppapi/c/dev/ppb_console_dev.h" | 11 #include "ppapi/c/dev/ppb_console_dev.h" |
12 #include "ppapi/c/dev/ppb_crypto_dev.h" | 12 #include "ppapi/c/dev/ppb_crypto_dev.h" |
13 #include "ppapi/c/dev/ppb_cursor_control_dev.h" | 13 #include "ppapi/c/dev/ppb_cursor_control_dev.h" |
14 #include "ppapi/c/dev/ppb_font_dev.h" | 14 #include "ppapi/c/dev/ppb_font_dev.h" |
15 #include "ppapi/c/dev/ppb_fullscreen_dev.h" | 15 #include "ppapi/c/dev/ppb_fullscreen_dev.h" |
16 #include "ppapi/c/dev/ppb_gles_chromium_texture_mapping_dev.h" | 16 #include "ppapi/c/dev/ppb_gles_chromium_texture_mapping_dev.h" |
17 #include "ppapi/c/dev/ppb_ime_input_event_dev.h" | 17 #include "ppapi/c/dev/ppb_ime_input_event_dev.h" |
18 #include "ppapi/c/dev/ppb_memory_dev.h" | 18 #include "ppapi/c/dev/ppb_memory_dev.h" |
| 19 #include "ppapi/c/dev/ppb_message_loop_dev.h" |
19 #include "ppapi/c/dev/ppb_resource_array_dev.h" | 20 #include "ppapi/c/dev/ppb_resource_array_dev.h" |
20 #include "ppapi/c/dev/ppb_testing_dev.h" | 21 #include "ppapi/c/dev/ppb_testing_dev.h" |
21 #include "ppapi/c/dev/ppb_text_input_dev.h" | 22 #include "ppapi/c/dev/ppb_text_input_dev.h" |
22 #include "ppapi/c/dev/ppb_url_util_dev.h" | 23 #include "ppapi/c/dev/ppb_url_util_dev.h" |
23 #include "ppapi/c/dev/ppb_var_deprecated.h" | 24 #include "ppapi/c/dev/ppb_var_deprecated.h" |
24 #include "ppapi/c/dev/ppb_video_capture_dev.h" | 25 #include "ppapi/c/dev/ppb_video_capture_dev.h" |
25 #include "ppapi/c/ppb_audio_config.h" | 26 #include "ppapi/c/ppb_audio_config.h" |
26 #include "ppapi/c/ppb_audio.h" | 27 #include "ppapi/c/ppb_audio.h" |
27 #include "ppapi/c/ppb_core.h" | 28 #include "ppapi/c/ppb_core.h" |
28 #include "ppapi/c/ppb_file_io.h" | 29 #include "ppapi/c/ppb_file_io.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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" |
75 #include "ppapi/proxy/ppb_flash_net_connector_proxy.h" | 76 #include "ppapi/proxy/ppb_flash_net_connector_proxy.h" |
76 #include "ppapi/proxy/ppb_flash_proxy.h" | 77 #include "ppapi/proxy/ppb_flash_proxy.h" |
77 #include "ppapi/proxy/ppb_font_proxy.h" | 78 #include "ppapi/proxy/ppb_font_proxy.h" |
78 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" | 79 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" |
79 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" | 80 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" |
80 #include "ppapi/proxy/ppb_image_data_proxy.h" | 81 #include "ppapi/proxy/ppb_image_data_proxy.h" |
81 #include "ppapi/proxy/ppb_instance_proxy.h" | 82 #include "ppapi/proxy/ppb_instance_proxy.h" |
| 83 #include "ppapi/proxy/ppb_message_loop_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" |
85 #include "ppapi/proxy/ppb_text_input_proxy.h" | 87 #include "ppapi/proxy/ppb_text_input_proxy.h" |
86 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h" | 88 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h" |
87 #include "ppapi/proxy/ppb_url_loader_proxy.h" | 89 #include "ppapi/proxy/ppb_url_loader_proxy.h" |
88 #include "ppapi/proxy/ppb_url_response_info_proxy.h" | 90 #include "ppapi/proxy/ppb_url_response_info_proxy.h" |
89 #include "ppapi/proxy/ppb_var_deprecated_proxy.h" | 91 #include "ppapi/proxy/ppb_var_deprecated_proxy.h" |
90 #include "ppapi/proxy/ppb_video_capture_proxy.h" | 92 #include "ppapi/proxy/ppb_video_capture_proxy.h" |
91 #include "ppapi/proxy/ppb_video_decoder_proxy.h" | 93 #include "ppapi/proxy/ppb_video_decoder_proxy.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 #undef PROXIED_IFACE | 163 #undef PROXIED_IFACE |
162 | 164 |
163 // Manually add some special proxies. Some of these don't have interfaces | 165 // Manually add some special proxies. Some of these don't have interfaces |
164 // that they support, so aren't covered by the macros above, but have proxies | 166 // that they support, so aren't covered by the macros above, but have proxies |
165 // for message routing. Others have different implementations between the | 167 // for message routing. Others have different implementations between the |
166 // proxy and the impl and there's no obvious message routing. | 168 // proxy and the impl and there's no obvious message routing. |
167 AddProxy(API_ID_RESOURCE_CREATION, &ResourceCreationProxy::Create); | 169 AddProxy(API_ID_RESOURCE_CREATION, &ResourceCreationProxy::Create); |
168 AddProxy(API_ID_PPP_CLASS, &PPP_Class_Proxy::Create); | 170 AddProxy(API_ID_PPP_CLASS, &PPP_Class_Proxy::Create); |
169 AddPPB(PPB_CORE_INTERFACE_1_0, API_ID_PPB_CORE, | 171 AddPPB(PPB_CORE_INTERFACE_1_0, API_ID_PPB_CORE, |
170 PPB_Core_Proxy::GetPPB_Core_Interface()); | 172 PPB_Core_Proxy::GetPPB_Core_Interface()); |
| 173 AddPPB(PPB_MESSAGELOOP_DEV_INTERFACE_0_1, API_ID_NONE, |
| 174 PPB_MessageLoop_Proxy::GetInterface()); |
171 AddPPB(PPB_OPENGLES2_INTERFACE_1_0, API_ID_NONE, | 175 AddPPB(PPB_OPENGLES2_INTERFACE_1_0, API_ID_NONE, |
172 PPB_OpenGLES2_Shared::GetInterface()); | 176 PPB_OpenGLES2_Shared::GetInterface()); |
173 AddPPB(PPB_VAR_INTERFACE_1_1, API_ID_NONE, | 177 AddPPB(PPB_VAR_INTERFACE_1_1, API_ID_NONE, |
174 PPB_Var_Shared::GetVarInterface1_1()); | 178 PPB_Var_Shared::GetVarInterface1_1()); |
175 AddPPB(PPB_VAR_INTERFACE_1_0, API_ID_NONE, | 179 AddPPB(PPB_VAR_INTERFACE_1_0, API_ID_NONE, |
176 PPB_Var_Shared::GetVarInterface1_0()); | 180 PPB_Var_Shared::GetVarInterface1_0()); |
177 | 181 |
178 AddFlashInterfaces(); | 182 AddFlashInterfaces(); |
179 | 183 |
180 // PPB (browser) interfaces. | 184 // PPB (browser) interfaces. |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 AddPPB(info->name, info->id, info->interface_ptr); | 333 AddPPB(info->name, info->id, info->interface_ptr); |
330 } | 334 } |
331 | 335 |
332 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { | 336 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { |
333 AddProxy(info->id, info->create_proxy); | 337 AddProxy(info->id, info->create_proxy); |
334 AddPPP(info->name, info->id, info->interface_ptr); | 338 AddPPP(info->name, info->id, info->interface_ptr); |
335 } | 339 } |
336 | 340 |
337 } // namespace proxy | 341 } // namespace proxy |
338 } // namespace ppapi | 342 } // namespace ppapi |
OLD | NEW |