| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 #include "ppapi/c/ppp_instance.h" | 53 #include "ppapi/c/ppp_instance.h" |
| 54 #include "ppapi/c/private/ppb_flash.h" | 54 #include "ppapi/c/private/ppb_flash.h" |
| 55 #include "ppapi/c/private/ppb_flash_clipboard.h" | 55 #include "ppapi/c/private/ppb_flash_clipboard.h" |
| 56 #include "ppapi/c/private/ppb_flash_file.h" | 56 #include "ppapi/c/private/ppb_flash_file.h" |
| 57 #include "ppapi/c/private/ppb_flash_menu.h" | 57 #include "ppapi/c/private/ppb_flash_menu.h" |
| 58 #include "ppapi/c/private/ppb_flash_net_connector.h" | 58 #include "ppapi/c/private/ppb_flash_net_connector.h" |
| 59 #include "ppapi/c/private/ppb_instance_private.h" | 59 #include "ppapi/c/private/ppb_instance_private.h" |
| 60 #include "ppapi/c/private/ppb_pdf.h" | 60 #include "ppapi/c/private/ppb_pdf.h" |
| 61 #include "ppapi/c/private/ppb_proxy_private.h" | 61 #include "ppapi/c/private/ppb_proxy_private.h" |
| 62 #include "ppapi/c/private/ppb_nacl_private.h" | 62 #include "ppapi/c/private/ppb_nacl_private.h" |
| 63 #include "ppapi/c/private/ppb_uma_private.h" |
| 63 #include "ppapi/c/trusted/ppb_broker_trusted.h" | 64 #include "ppapi/c/trusted/ppb_broker_trusted.h" |
| 64 #include "ppapi/c/trusted/ppb_image_data_trusted.h" | 65 #include "ppapi/c/trusted/ppb_image_data_trusted.h" |
| 65 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" | 66 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" |
| 66 #include "webkit/plugins/ppapi/callbacks.h" | 67 #include "webkit/plugins/ppapi/callbacks.h" |
| 67 #include "webkit/plugins/ppapi/common.h" | 68 #include "webkit/plugins/ppapi/common.h" |
| 68 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 69 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
| 69 #include "webkit/plugins/ppapi/ppb_audio_impl.h" | 70 #include "webkit/plugins/ppapi/ppb_audio_impl.h" |
| 70 #include "webkit/plugins/ppapi/ppb_broker_impl.h" | 71 #include "webkit/plugins/ppapi/ppb_broker_impl.h" |
| 71 #include "webkit/plugins/ppapi/ppb_buffer_impl.h" | 72 #include "webkit/plugins/ppapi/ppb_buffer_impl.h" |
| 72 #include "webkit/plugins/ppapi/ppb_char_set_impl.h" | 73 #include "webkit/plugins/ppapi/ppb_char_set_impl.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 84 #include "webkit/plugins/ppapi/ppb_flash_menu_impl.h" | 85 #include "webkit/plugins/ppapi/ppb_flash_menu_impl.h" |
| 85 #include "webkit/plugins/ppapi/ppb_flash_net_connector_impl.h" | 86 #include "webkit/plugins/ppapi/ppb_flash_net_connector_impl.h" |
| 86 #include "webkit/plugins/ppapi/ppb_font_impl.h" | 87 #include "webkit/plugins/ppapi/ppb_font_impl.h" |
| 87 #include "webkit/plugins/ppapi/ppb_graphics_2d_impl.h" | 88 #include "webkit/plugins/ppapi/ppb_graphics_2d_impl.h" |
| 88 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" | 89 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" |
| 89 #include "webkit/plugins/ppapi/ppb_nacl_private_impl.h" | 90 #include "webkit/plugins/ppapi/ppb_nacl_private_impl.h" |
| 90 #include "webkit/plugins/ppapi/ppb_pdf_impl.h" | 91 #include "webkit/plugins/ppapi/ppb_pdf_impl.h" |
| 91 #include "webkit/plugins/ppapi/ppb_proxy_impl.h" | 92 #include "webkit/plugins/ppapi/ppb_proxy_impl.h" |
| 92 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" | 93 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" |
| 93 #include "webkit/plugins/ppapi/ppb_transport_impl.h" | 94 #include "webkit/plugins/ppapi/ppb_transport_impl.h" |
| 95 #include "webkit/plugins/ppapi/ppb_uma_private_impl.h" |
| 94 #include "webkit/plugins/ppapi/ppb_url_loader_impl.h" | 96 #include "webkit/plugins/ppapi/ppb_url_loader_impl.h" |
| 95 #include "webkit/plugins/ppapi/ppb_url_request_info_impl.h" | 97 #include "webkit/plugins/ppapi/ppb_url_request_info_impl.h" |
| 96 #include "webkit/plugins/ppapi/ppb_url_response_info_impl.h" | 98 #include "webkit/plugins/ppapi/ppb_url_response_info_impl.h" |
| 97 #include "webkit/plugins/ppapi/ppb_url_util_impl.h" | 99 #include "webkit/plugins/ppapi/ppb_url_util_impl.h" |
| 98 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" | 100 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" |
| 99 #include "webkit/plugins/ppapi/ppb_widget_impl.h" | 101 #include "webkit/plugins/ppapi/ppb_widget_impl.h" |
| 100 #include "webkit/plugins/ppapi/resource_tracker.h" | 102 #include "webkit/plugins/ppapi/resource_tracker.h" |
| 101 #include "webkit/plugins/ppapi/var.h" | 103 #include "webkit/plugins/ppapi/var.h" |
| 102 | 104 |
| 103 #ifdef ENABLE_GPU | 105 #ifdef ENABLE_GPU |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 if (strcmp(name, PPB_INSTANCE_PRIVATE_INTERFACE) == 0) | 290 if (strcmp(name, PPB_INSTANCE_PRIVATE_INTERFACE) == 0) |
| 289 return PluginInstance::GetPrivateInterface(); | 291 return PluginInstance::GetPrivateInterface(); |
| 290 if (strcmp(name, PPB_MESSAGING_INTERFACE) == 0) | 292 if (strcmp(name, PPB_MESSAGING_INTERFACE) == 0) |
| 291 return PluginInstance::GetMessagingInterface(); | 293 return PluginInstance::GetMessagingInterface(); |
| 292 if (strcmp(name, PPB_PDF_INTERFACE) == 0) | 294 if (strcmp(name, PPB_PDF_INTERFACE) == 0) |
| 293 return PPB_PDF_Impl::GetInterface(); | 295 return PPB_PDF_Impl::GetInterface(); |
| 294 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) | 296 if (strcmp(name, PPB_PROXY_PRIVATE_INTERFACE) == 0) |
| 295 return PPB_Proxy_Impl::GetInterface(); | 297 return PPB_Proxy_Impl::GetInterface(); |
| 296 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE) == 0) | 298 if (strcmp(name, PPB_SCROLLBAR_DEV_INTERFACE) == 0) |
| 297 return PPB_Scrollbar_Impl::GetInterface(); | 299 return PPB_Scrollbar_Impl::GetInterface(); |
| 300 if (strcmp(name, PPB_UMA_PRIVATE_INTERFACE) == 0) |
| 301 return PPB_UMA_Private_Impl::GetInterface(); |
| 298 if (strcmp(name, PPB_URLLOADER_INTERFACE) == 0) | 302 if (strcmp(name, PPB_URLLOADER_INTERFACE) == 0) |
| 299 return PPB_URLLoader_Impl::GetInterface(); | 303 return PPB_URLLoader_Impl::GetInterface(); |
| 300 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE) == 0) | 304 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE) == 0) |
| 301 return PPB_URLLoader_Impl::GetTrustedInterface(); | 305 return PPB_URLLoader_Impl::GetTrustedInterface(); |
| 302 if (strcmp(name, PPB_URLREQUESTINFO_INTERFACE) == 0) | 306 if (strcmp(name, PPB_URLREQUESTINFO_INTERFACE) == 0) |
| 303 return PPB_URLRequestInfo_Impl::GetInterface(); | 307 return PPB_URLRequestInfo_Impl::GetInterface(); |
| 304 if (strcmp(name, PPB_URLRESPONSEINFO_INTERFACE) == 0) | 308 if (strcmp(name, PPB_URLRESPONSEINFO_INTERFACE) == 0) |
| 305 return PPB_URLResponseInfo_Impl::GetInterface(); | 309 return PPB_URLResponseInfo_Impl::GetInterface(); |
| 306 if (strcmp(name, PPB_URLUTIL_DEV_INTERFACE) == 0) | 310 if (strcmp(name, PPB_URLUTIL_DEV_INTERFACE) == 0) |
| 307 return PPB_URLUtil_Impl::GetInterface(); | 311 return PPB_URLUtil_Impl::GetInterface(); |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 int retval = entry_points_.initialize_module(pp_module(), &GetInterface); | 559 int retval = entry_points_.initialize_module(pp_module(), &GetInterface); |
| 556 if (retval != 0) { | 560 if (retval != 0) { |
| 557 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 561 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; |
| 558 return false; | 562 return false; |
| 559 } | 563 } |
| 560 return true; | 564 return true; |
| 561 } | 565 } |
| 562 | 566 |
| 563 } // namespace ppapi | 567 } // namespace ppapi |
| 564 } // namespace webkit | 568 } // namespace webkit |
| OLD | NEW |