| 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 "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/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 #include "ppapi/shared_impl/ppb_var_shared.h" | 102 #include "ppapi/shared_impl/ppb_var_shared.h" |
| 103 #include "ppapi/shared_impl/time_conversion.h" | 103 #include "ppapi/shared_impl/time_conversion.h" |
| 104 #include "ppapi/thunk/enter.h" | 104 #include "ppapi/thunk/enter.h" |
| 105 #include "ppapi/thunk/thunk.h" | 105 #include "ppapi/thunk/thunk.h" |
| 106 #include "webkit/plugins/plugin_switches.h" | 106 #include "webkit/plugins/plugin_switches.h" |
| 107 #include "webkit/plugins/ppapi/common.h" | 107 #include "webkit/plugins/ppapi/common.h" |
| 108 #include "webkit/plugins/ppapi/host_globals.h" | 108 #include "webkit/plugins/ppapi/host_globals.h" |
| 109 #include "webkit/plugins/ppapi/ppapi_interface_factory.h" | 109 #include "webkit/plugins/ppapi/ppapi_interface_factory.h" |
| 110 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 110 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
| 111 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h" | 111 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h" |
| 112 #include "webkit/plugins/ppapi/ppb_flash_file_impl.h" | |
| 113 #include "webkit/plugins/ppapi/ppb_flash_impl.h" | 112 #include "webkit/plugins/ppapi/ppb_flash_impl.h" |
| 114 #include "webkit/plugins/ppapi/ppb_flash_menu_impl.h" | 113 #include "webkit/plugins/ppapi/ppb_flash_menu_impl.h" |
| 115 #include "webkit/plugins/ppapi/ppb_gpu_blacklist_private_impl.h" | 114 #include "webkit/plugins/ppapi/ppb_gpu_blacklist_private_impl.h" |
| 116 #include "webkit/plugins/ppapi/ppb_graphics_2d_impl.h" | 115 #include "webkit/plugins/ppapi/ppb_graphics_2d_impl.h" |
| 117 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" | 116 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" |
| 118 #include "webkit/plugins/ppapi/ppb_layer_compositor_impl.h" | 117 #include "webkit/plugins/ppapi/ppb_layer_compositor_impl.h" |
| 119 #include "webkit/plugins/ppapi/ppb_proxy_impl.h" | 118 #include "webkit/plugins/ppapi/ppb_proxy_impl.h" |
| 120 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" | 119 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" |
| 121 #include "webkit/plugins/ppapi/ppb_uma_private_impl.h" | 120 #include "webkit/plugins/ppapi/ppb_uma_private_impl.h" |
| 122 #include "webkit/plugins/ppapi/ppb_var_deprecated_impl.h" | 121 #include "webkit/plugins/ppapi/ppb_var_deprecated_impl.h" |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 // Please keep alphabetized by interface macro name with "special" stuff at | 302 // Please keep alphabetized by interface macro name with "special" stuff at |
| 304 // the bottom. | 303 // the bottom. |
| 305 if (strcmp(name, PPB_AUDIO_INPUT_TRUSTED_DEV_INTERFACE_0_1) == 0) | 304 if (strcmp(name, PPB_AUDIO_INPUT_TRUSTED_DEV_INTERFACE_0_1) == 0) |
| 306 return ::ppapi::thunk::GetPPB_AudioInputTrusted_0_1_Thunk(); | 305 return ::ppapi::thunk::GetPPB_AudioInputTrusted_0_1_Thunk(); |
| 307 if (strcmp(name, PPB_AUDIO_TRUSTED_INTERFACE_0_6) == 0) | 306 if (strcmp(name, PPB_AUDIO_TRUSTED_INTERFACE_0_6) == 0) |
| 308 return ::ppapi::thunk::GetPPB_AudioTrusted_0_6_Thunk(); | 307 return ::ppapi::thunk::GetPPB_AudioTrusted_0_6_Thunk(); |
| 309 if (strcmp(name, PPB_BUFFER_TRUSTED_INTERFACE_0_1) == 0) | 308 if (strcmp(name, PPB_BUFFER_TRUSTED_INTERFACE_0_1) == 0) |
| 310 return ::ppapi::thunk::GetPPB_BufferTrusted_0_1_Thunk(); | 309 return ::ppapi::thunk::GetPPB_BufferTrusted_0_1_Thunk(); |
| 311 if (strcmp(name, PPB_CORE_INTERFACE_1_0) == 0) | 310 if (strcmp(name, PPB_CORE_INTERFACE_1_0) == 0) |
| 312 return &core_interface; | 311 return &core_interface; |
| 313 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) | |
| 314 return PPB_Flash_File_FileRef_Impl::GetInterface(); | |
| 315 if (strcmp(name, PPB_FLASH_FILE_MODULELOCAL_INTERFACE) == 0) | |
| 316 return PPB_Flash_File_ModuleLocal_Impl::GetInterface(); | |
| 317 if (strcmp(name, PPB_FLASH_MENU_INTERFACE_0_2) == 0) | |
| 318 return ::ppapi::thunk::GetPPB_Flash_Menu_0_2_Thunk(); | |
| 319 if (strcmp(name, PPB_FLASH_MESSAGELOOP_INTERFACE_0_1) == 0) | |
| 320 return ::ppapi::thunk::GetPPB_Flash_MessageLoop_0_1_Thunk(); | |
| 321 if (strcmp(name, PPB_FLASH_TCPSOCKET_INTERFACE_0_2) == 0) | |
| 322 return ::ppapi::thunk::GetPPB_TCPSocket_Private_0_3_Thunk(); | |
| 323 if (strcmp(name, PPB_FULLSCREEN_DEV_INTERFACE_0_5) == 0) | 312 if (strcmp(name, PPB_FULLSCREEN_DEV_INTERFACE_0_5) == 0) |
| 324 return ::ppapi::thunk::GetPPB_Fullscreen_1_0_Thunk(); | 313 return ::ppapi::thunk::GetPPB_Fullscreen_1_0_Thunk(); |
| 325 if (strcmp(name, PPB_GPU_BLACKLIST_INTERFACE) == 0) | 314 if (strcmp(name, PPB_GPU_BLACKLIST_INTERFACE) == 0) |
| 326 return PPB_GpuBlacklist_Private_Impl::GetInterface(); | 315 return PPB_GpuBlacklist_Private_Impl::GetInterface(); |
| 327 if (strcmp(name, PPB_GRAPHICS_3D_TRUSTED_INTERFACE_1_0) == 0) | 316 if (strcmp(name, PPB_GRAPHICS_3D_TRUSTED_INTERFACE_1_0) == 0) |
| 328 return ::ppapi::thunk::GetPPB_Graphics3DTrusted_1_0_Thunk(); | 317 return ::ppapi::thunk::GetPPB_Graphics3DTrusted_1_0_Thunk(); |
| 329 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE_0_4) == 0) | 318 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE_0_4) == 0) |
| 330 return ::ppapi::thunk::GetPPB_ImageDataTrusted_0_4_Thunk(); | 319 return ::ppapi::thunk::GetPPB_ImageDataTrusted_0_4_Thunk(); |
| 331 if (strcmp(name, PPB_INPUT_EVENT_INTERFACE_1_0) == 0) | 320 if (strcmp(name, PPB_INPUT_EVENT_INTERFACE_1_0) == 0) |
| 332 return ::ppapi::thunk::GetPPB_InputEvent_1_0_Thunk(); | 321 return ::ppapi::thunk::GetPPB_InputEvent_1_0_Thunk(); |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 int retval = entry_points.initialize_module(pp_module(), &GetInterface); | 591 int retval = entry_points.initialize_module(pp_module(), &GetInterface); |
| 603 if (retval != 0) { | 592 if (retval != 0) { |
| 604 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 593 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; |
| 605 return false; | 594 return false; |
| 606 } | 595 } |
| 607 return true; | 596 return true; |
| 608 } | 597 } |
| 609 | 598 |
| 610 } // namespace ppapi | 599 } // namespace ppapi |
| 611 } // namespace webkit | 600 } // namespace webkit |
| OLD | NEW |