| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/dispatcher.h" | 5 #include "ppapi/proxy/dispatcher.h" |
| 6 | 6 |
| 7 #include <string.h> // For memset. | 7 #include <string.h> // For memset. |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "ppapi/c/ppb_audio_config.h" | 29 #include "ppapi/c/ppb_audio_config.h" |
| 30 #include "ppapi/c/ppb_core.h" | 30 #include "ppapi/c/ppb_core.h" |
| 31 #include "ppapi/c/ppb_graphics_2d.h" | 31 #include "ppapi/c/ppb_graphics_2d.h" |
| 32 #include "ppapi/c/ppb_image_data.h" | 32 #include "ppapi/c/ppb_image_data.h" |
| 33 #include "ppapi/c/ppb_instance.h" | 33 #include "ppapi/c/ppb_instance.h" |
| 34 #include "ppapi/c/ppb_url_loader.h" | 34 #include "ppapi/c/ppb_url_loader.h" |
| 35 #include "ppapi/c/ppb_url_request_info.h" | 35 #include "ppapi/c/ppb_url_request_info.h" |
| 36 #include "ppapi/c/ppb_url_response_info.h" | 36 #include "ppapi/c/ppb_url_response_info.h" |
| 37 #include "ppapi/c/ppp_instance.h" | 37 #include "ppapi/c/ppp_instance.h" |
| 38 #include "ppapi/c/private/ppb_flash.h" | 38 #include "ppapi/c/private/ppb_flash.h" |
| 39 #include "ppapi/c/private/ppb_flash_menu.h" |
| 39 #include "ppapi/c/private/ppb_pdf.h" | 40 #include "ppapi/c/private/ppb_pdf.h" |
| 40 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" | 41 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" |
| 41 #include "ppapi/proxy/ppapi_messages.h" | 42 #include "ppapi/proxy/ppapi_messages.h" |
| 42 #include "ppapi/proxy/ppb_audio_config_proxy.h" | 43 #include "ppapi/proxy/ppb_audio_config_proxy.h" |
| 43 #include "ppapi/proxy/ppb_audio_proxy.h" | 44 #include "ppapi/proxy/ppb_audio_proxy.h" |
| 44 #include "ppapi/proxy/ppb_buffer_proxy.h" | 45 #include "ppapi/proxy/ppb_buffer_proxy.h" |
| 45 #include "ppapi/proxy/ppb_char_set_proxy.h" | 46 #include "ppapi/proxy/ppb_char_set_proxy.h" |
| 46 #include "ppapi/proxy/ppb_context_3d_proxy.h" | 47 #include "ppapi/proxy/ppb_context_3d_proxy.h" |
| 47 #include "ppapi/proxy/ppb_core_proxy.h" | 48 #include "ppapi/proxy/ppb_core_proxy.h" |
| 48 #include "ppapi/proxy/ppb_cursor_control_proxy.h" | 49 #include "ppapi/proxy/ppb_cursor_control_proxy.h" |
| 49 #include "ppapi/proxy/ppb_flash_proxy.h" | 50 #include "ppapi/proxy/ppb_flash_proxy.h" |
| 51 #include "ppapi/proxy/ppb_flash_menu_proxy.h" |
| 50 #include "ppapi/proxy/ppb_font_proxy.h" | 52 #include "ppapi/proxy/ppb_font_proxy.h" |
| 51 #include "ppapi/proxy/ppb_fullscreen_proxy.h" | 53 #include "ppapi/proxy/ppb_fullscreen_proxy.h" |
| 52 #include "ppapi/proxy/ppb_gles_chromium_texture_mapping_proxy.h" | 54 #include "ppapi/proxy/ppb_gles_chromium_texture_mapping_proxy.h" |
| 53 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" | 55 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" |
| 54 #include "ppapi/proxy/ppb_image_data_proxy.h" | 56 #include "ppapi/proxy/ppb_image_data_proxy.h" |
| 55 #include "ppapi/proxy/ppb_instance_proxy.h" | 57 #include "ppapi/proxy/ppb_instance_proxy.h" |
| 56 #include "ppapi/proxy/ppb_opengles2_proxy.h" | 58 #include "ppapi/proxy/ppb_opengles2_proxy.h" |
| 57 #include "ppapi/proxy/ppb_pdf_proxy.h" | 59 #include "ppapi/proxy/ppb_pdf_proxy.h" |
| 58 #include "ppapi/proxy/ppb_surface_3d_proxy.h" | 60 #include "ppapi/proxy/ppb_surface_3d_proxy.h" |
| 59 #include "ppapi/proxy/ppb_testing_proxy.h" | 61 #include "ppapi/proxy/ppb_testing_proxy.h" |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 return new PPB_URLResponseInfo_Proxy(this, interface_functions); | 288 return new PPB_URLResponseInfo_Proxy(this, interface_functions); |
| 287 if (interface_name == PPB_VAR_DEPRECATED_INTERFACE) | 289 if (interface_name == PPB_VAR_DEPRECATED_INTERFACE) |
| 288 return new PPB_Var_Deprecated_Proxy(this, interface_functions); | 290 return new PPB_Var_Deprecated_Proxy(this, interface_functions); |
| 289 if (interface_name == PPP_INSTANCE_INTERFACE) | 291 if (interface_name == PPP_INSTANCE_INTERFACE) |
| 290 return new PPP_Instance_Proxy(this, interface_functions); | 292 return new PPP_Instance_Proxy(this, interface_functions); |
| 291 | 293 |
| 292 // Trusted interfaces. | 294 // Trusted interfaces. |
| 293 if (!disallow_trusted_interfaces_) { | 295 if (!disallow_trusted_interfaces_) { |
| 294 if (interface_name == PPB_FLASH_INTERFACE) | 296 if (interface_name == PPB_FLASH_INTERFACE) |
| 295 return new PPB_Flash_Proxy(this, interface_functions); | 297 return new PPB_Flash_Proxy(this, interface_functions); |
| 298 if (interface_name == PPB_FLASH_MENU_INTERFACE) |
| 299 return new PPB_Flash_Menu_Proxy(this, interface_functions); |
| 296 if (interface_name == PPB_PDF_INTERFACE) | 300 if (interface_name == PPB_PDF_INTERFACE) |
| 297 return new PPB_PDF_Proxy(this, interface_functions); | 301 return new PPB_PDF_Proxy(this, interface_functions); |
| 298 if (interface_name == PPB_URLLOADERTRUSTED_INTERFACE) | 302 if (interface_name == PPB_URLLOADERTRUSTED_INTERFACE) |
| 299 return new PPB_URLLoaderTrusted_Proxy(this, interface_functions); | 303 return new PPB_URLLoaderTrusted_Proxy(this, interface_functions); |
| 300 } | 304 } |
| 301 | 305 |
| 302 return NULL; | 306 return NULL; |
| 303 } | 307 } |
| 304 | 308 |
| 305 } // namespace proxy | 309 } // namespace proxy |
| 306 } // namespace pp | 310 } // namespace pp |
| 307 | 311 |
| OLD | NEW |