| 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 "webkit/plugins/ppapi/plugin_module.h" | 5 #include "webkit/plugins/ppapi/plugin_module.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #include "ppapi/c/dev/ppb_widget_dev.h" | 43 #include "ppapi/c/dev/ppb_widget_dev.h" |
| 44 #include "ppapi/c/dev/ppb_zoom_dev.h" | 44 #include "ppapi/c/dev/ppb_zoom_dev.h" |
| 45 #include "ppapi/c/pp_module.h" | 45 #include "ppapi/c/pp_module.h" |
| 46 #include "ppapi/c/pp_resource.h" | 46 #include "ppapi/c/pp_resource.h" |
| 47 #include "ppapi/c/pp_var.h" | 47 #include "ppapi/c/pp_var.h" |
| 48 #include "ppapi/c/ppb_audio.h" | 48 #include "ppapi/c/ppb_audio.h" |
| 49 #include "ppapi/c/ppb_audio_config.h" | 49 #include "ppapi/c/ppb_audio_config.h" |
| 50 #include "ppapi/c/ppb_core.h" | 50 #include "ppapi/c/ppb_core.h" |
| 51 #include "ppapi/c/ppb_graphics_2d.h" | 51 #include "ppapi/c/ppb_graphics_2d.h" |
| 52 #include "ppapi/c/ppb_image_data.h" | 52 #include "ppapi/c/ppb_image_data.h" |
| 53 #include "ppapi/c/ppb_input_event.h" |
| 53 #include "ppapi/c/ppb_instance.h" | 54 #include "ppapi/c/ppb_instance.h" |
| 54 #include "ppapi/c/ppb_messaging.h" | 55 #include "ppapi/c/ppb_messaging.h" |
| 55 #include "ppapi/c/ppb_url_loader.h" | 56 #include "ppapi/c/ppb_url_loader.h" |
| 56 #include "ppapi/c/ppb_url_request_info.h" | 57 #include "ppapi/c/ppb_url_request_info.h" |
| 57 #include "ppapi/c/ppb_url_response_info.h" | 58 #include "ppapi/c/ppb_url_response_info.h" |
| 58 #include "ppapi/c/ppb_var.h" | 59 #include "ppapi/c/ppb_var.h" |
| 59 #include "ppapi/c/ppp.h" | 60 #include "ppapi/c/ppp.h" |
| 60 #include "ppapi/c/ppp_instance.h" | 61 #include "ppapi/c/ppp_instance.h" |
| 61 #include "ppapi/c/private/ppb_flash.h" | 62 #include "ppapi/c/private/ppb_flash.h" |
| 62 #include "ppapi/c/private/ppb_flash_clipboard.h" | 63 #include "ppapi/c/private/ppb_flash_clipboard.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 80 #include "webkit/plugins/ppapi/ppb_crypto_impl.h" | 81 #include "webkit/plugins/ppapi/ppb_crypto_impl.h" |
| 81 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h" | 82 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h" |
| 82 #include "webkit/plugins/ppapi/ppb_flash_clipboard_impl.h" | 83 #include "webkit/plugins/ppapi/ppb_flash_clipboard_impl.h" |
| 83 #include "webkit/plugins/ppapi/ppb_flash_file_impl.h" | 84 #include "webkit/plugins/ppapi/ppb_flash_file_impl.h" |
| 84 #include "webkit/plugins/ppapi/ppb_flash_impl.h" | 85 #include "webkit/plugins/ppapi/ppb_flash_impl.h" |
| 85 #include "webkit/plugins/ppapi/ppb_flash_menu_impl.h" | 86 #include "webkit/plugins/ppapi/ppb_flash_menu_impl.h" |
| 86 #include "webkit/plugins/ppapi/ppb_flash_net_connector_impl.h" | 87 #include "webkit/plugins/ppapi/ppb_flash_net_connector_impl.h" |
| 87 #include "webkit/plugins/ppapi/ppb_font_impl.h" | 88 #include "webkit/plugins/ppapi/ppb_font_impl.h" |
| 88 #include "webkit/plugins/ppapi/ppb_graphics_2d_impl.h" | 89 #include "webkit/plugins/ppapi/ppb_graphics_2d_impl.h" |
| 89 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" | 90 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" |
| 91 #include "webkit/plugins/ppapi/ppb_input_event_impl.h" |
| 90 #include "webkit/plugins/ppapi/ppb_layer_compositor_impl.h" | 92 #include "webkit/plugins/ppapi/ppb_layer_compositor_impl.h" |
| 91 #include "webkit/plugins/ppapi/ppb_opengles_impl.h" | 93 #include "webkit/plugins/ppapi/ppb_opengles_impl.h" |
| 92 #include "webkit/plugins/ppapi/ppb_proxy_impl.h" | 94 #include "webkit/plugins/ppapi/ppb_proxy_impl.h" |
| 93 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" | 95 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" |
| 94 #include "webkit/plugins/ppapi/ppb_uma_private_impl.h" | 96 #include "webkit/plugins/ppapi/ppb_uma_private_impl.h" |
| 95 #include "webkit/plugins/ppapi/ppb_url_util_impl.h" | 97 #include "webkit/plugins/ppapi/ppb_url_util_impl.h" |
| 96 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" | 98 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" |
| 97 #include "webkit/plugins/ppapi/ppb_video_layer_impl.h" | 99 #include "webkit/plugins/ppapi/ppb_video_layer_impl.h" |
| 98 #include "webkit/plugins/ppapi/resource_tracker.h" | 100 #include "webkit/plugins/ppapi/resource_tracker.h" |
| 99 #include "webkit/plugins/ppapi/var.h" | 101 #include "webkit/plugins/ppapi/var.h" |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 if (strcmp(name, PPB_FONT_DEV_INTERFACE) == 0) | 287 if (strcmp(name, PPB_FONT_DEV_INTERFACE) == 0) |
| 286 return ::ppapi::thunk::GetPPB_Font_Thunk(); | 288 return ::ppapi::thunk::GetPPB_Font_Thunk(); |
| 287 if (strcmp(name, PPB_FULLSCREEN_DEV_INTERFACE) == 0) | 289 if (strcmp(name, PPB_FULLSCREEN_DEV_INTERFACE) == 0) |
| 288 return ::ppapi::thunk::GetPPB_Fullscreen_Thunk(); | 290 return ::ppapi::thunk::GetPPB_Fullscreen_Thunk(); |
| 289 if (strcmp(name, PPB_GRAPHICS_2D_INTERFACE) == 0) | 291 if (strcmp(name, PPB_GRAPHICS_2D_INTERFACE) == 0) |
| 290 return PPB_Graphics2D_Impl::GetInterface(); | 292 return PPB_Graphics2D_Impl::GetInterface(); |
| 291 if (strcmp(name, PPB_IMAGEDATA_INTERFACE) == 0) | 293 if (strcmp(name, PPB_IMAGEDATA_INTERFACE) == 0) |
| 292 return ::ppapi::thunk::GetPPB_ImageData_Thunk(); | 294 return ::ppapi::thunk::GetPPB_ImageData_Thunk(); |
| 293 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE) == 0) | 295 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE) == 0) |
| 294 return ::ppapi::thunk::GetPPB_ImageDataTrusted_Thunk(); | 296 return ::ppapi::thunk::GetPPB_ImageDataTrusted_Thunk(); |
| 297 if (strcmp(name, PPB_INPUT_EVENT_INTERFACE) == 0) |
| 298 return ::ppapi::thunk::GetPPB_InputEvent_Thunk(); |
| 295 if (strcmp(name, PPB_INSTANCE_INTERFACE_0_4) == 0) | 299 if (strcmp(name, PPB_INSTANCE_INTERFACE_0_4) == 0) |
| 296 return ::ppapi::thunk::GetPPB_Instance_0_4_Thunk(); | 300 return ::ppapi::thunk::GetPPB_Instance_0_4_Thunk(); |
| 297 if (strcmp(name, PPB_INSTANCE_INTERFACE_0_5) == 0) | 301 if (strcmp(name, PPB_INSTANCE_INTERFACE_0_5) == 0) |
| 298 return ::ppapi::thunk::GetPPB_Instance_0_5_Thunk(); | 302 return ::ppapi::thunk::GetPPB_Instance_0_5_Thunk(); |
| 299 if (strcmp(name, PPB_INSTANCE_PRIVATE_INTERFACE) == 0) | 303 if (strcmp(name, PPB_INSTANCE_PRIVATE_INTERFACE) == 0) |
| 300 return ::ppapi::thunk::GetPPB_Instance_Private_Thunk(); | 304 return ::ppapi::thunk::GetPPB_Instance_Private_Thunk(); |
| 301 if (strcmp(name, PPB_MESSAGING_INTERFACE) == 0) | 305 if (strcmp(name, PPB_MESSAGING_INTERFACE) == 0) |
| 302 return PluginInstance::GetMessagingInterface(); | 306 return PluginInstance::GetMessagingInterface(); |
| 303 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) | 307 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) |
| 304 return PPB_Proxy_Impl::GetInterface(); | 308 return PPB_Proxy_Impl::GetInterface(); |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 int retval = entry_points_.initialize_module(pp_module(), &GetInterface); | 594 int retval = entry_points_.initialize_module(pp_module(), &GetInterface); |
| 591 if (retval != 0) { | 595 if (retval != 0) { |
| 592 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 596 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; |
| 593 return false; | 597 return false; |
| 594 } | 598 } |
| 595 return true; | 599 return true; |
| 596 } | 600 } |
| 597 | 601 |
| 598 } // namespace ppapi | 602 } // namespace ppapi |
| 599 } // namespace webkit | 603 } // namespace webkit |
| OLD | NEW |