| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 #include "ppapi/c/ppb_url_response_info.h" | 62 #include "ppapi/c/ppb_url_response_info.h" |
| 63 #include "ppapi/c/ppb_var.h" | 63 #include "ppapi/c/ppb_var.h" |
| 64 #include "ppapi/c/ppb_view.h" | 64 #include "ppapi/c/ppb_view.h" |
| 65 #include "ppapi/c/ppp.h" | 65 #include "ppapi/c/ppp.h" |
| 66 #include "ppapi/c/ppp_instance.h" | 66 #include "ppapi/c/ppp_instance.h" |
| 67 #include "ppapi/c/private/ppb_file_ref_private.h" | 67 #include "ppapi/c/private/ppb_file_ref_private.h" |
| 68 #include "ppapi/c/private/ppb_flash.h" | 68 #include "ppapi/c/private/ppb_flash.h" |
| 69 #include "ppapi/c/private/ppb_flash_clipboard.h" | 69 #include "ppapi/c/private/ppb_flash_clipboard.h" |
| 70 #include "ppapi/c/private/ppb_flash_file.h" | 70 #include "ppapi/c/private/ppb_flash_file.h" |
| 71 #include "ppapi/c/private/ppb_flash_fullscreen.h" | 71 #include "ppapi/c/private/ppb_flash_fullscreen.h" |
| 72 #include "ppapi/c/private/ppb_flash_message_loop.h" |
| 72 #include "ppapi/c/private/ppb_flash_tcp_socket.h" | 73 #include "ppapi/c/private/ppb_flash_tcp_socket.h" |
| 73 #include "ppapi/c/private/ppb_gpu_blacklist_private.h" | 74 #include "ppapi/c/private/ppb_gpu_blacklist_private.h" |
| 74 #include "ppapi/c/private/ppb_instance_private.h" | 75 #include "ppapi/c/private/ppb_instance_private.h" |
| 75 #include "ppapi/c/private/ppb_pdf.h" | 76 #include "ppapi/c/private/ppb_pdf.h" |
| 76 #include "ppapi/c/private/ppb_proxy_private.h" | 77 #include "ppapi/c/private/ppb_proxy_private.h" |
| 77 #include "ppapi/c/private/ppb_tcp_socket_private.h" | 78 #include "ppapi/c/private/ppb_tcp_socket_private.h" |
| 78 #include "ppapi/c/private/ppb_udp_socket_private.h" | 79 #include "ppapi/c/private/ppb_udp_socket_private.h" |
| 79 #include "ppapi/c/private/ppb_uma_private.h" | 80 #include "ppapi/c/private/ppb_uma_private.h" |
| 80 #include "ppapi/c/trusted/ppb_audio_input_trusted_dev.h" | 81 #include "ppapi/c/trusted/ppb_audio_input_trusted_dev.h" |
| 81 #include "ppapi/c/trusted/ppb_audio_trusted.h" | 82 #include "ppapi/c/trusted/ppb_audio_trusted.h" |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE_3_0) == 0) | 315 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE_3_0) == 0) |
| 315 return ::ppapi::thunk::GetPPB_Flash_Clipboard_3_0_Thunk(); | 316 return ::ppapi::thunk::GetPPB_Flash_Clipboard_3_0_Thunk(); |
| 316 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE_3_LEGACY) == 0) | 317 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE_3_LEGACY) == 0) |
| 317 return ::ppapi::thunk::GetPPB_Flash_Clipboard_3_0_Thunk(); | 318 return ::ppapi::thunk::GetPPB_Flash_Clipboard_3_0_Thunk(); |
| 318 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) | 319 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) |
| 319 return PPB_Flash_File_FileRef_Impl::GetInterface(); | 320 return PPB_Flash_File_FileRef_Impl::GetInterface(); |
| 320 if (strcmp(name, PPB_FLASH_FILE_MODULELOCAL_INTERFACE) == 0) | 321 if (strcmp(name, PPB_FLASH_FILE_MODULELOCAL_INTERFACE) == 0) |
| 321 return PPB_Flash_File_ModuleLocal_Impl::GetInterface(); | 322 return PPB_Flash_File_ModuleLocal_Impl::GetInterface(); |
| 322 if (strcmp(name, PPB_FLASH_MENU_INTERFACE_0_2) == 0) | 323 if (strcmp(name, PPB_FLASH_MENU_INTERFACE_0_2) == 0) |
| 323 return ::ppapi::thunk::GetPPB_Flash_Menu_0_2_Thunk(); | 324 return ::ppapi::thunk::GetPPB_Flash_Menu_0_2_Thunk(); |
| 325 if (strcmp(name, PPB_FLASH_MESSAGELOOP_INTERFACE_0_1) == 0) |
| 326 return ::ppapi::thunk::GetPPB_Flash_MessageLoop_0_1_Thunk(); |
| 324 if (strcmp(name, PPB_FLASH_TCPSOCKET_INTERFACE_0_2) == 0) | 327 if (strcmp(name, PPB_FLASH_TCPSOCKET_INTERFACE_0_2) == 0) |
| 325 return ::ppapi::thunk::GetPPB_TCPSocket_Private_0_3_Thunk(); | 328 return ::ppapi::thunk::GetPPB_TCPSocket_Private_0_3_Thunk(); |
| 326 if (strcmp(name, PPB_FULLSCREEN_DEV_INTERFACE_0_5) == 0) | 329 if (strcmp(name, PPB_FULLSCREEN_DEV_INTERFACE_0_5) == 0) |
| 327 return ::ppapi::thunk::GetPPB_Fullscreen_1_0_Thunk(); | 330 return ::ppapi::thunk::GetPPB_Fullscreen_1_0_Thunk(); |
| 328 if (strcmp(name, PPB_GPU_BLACKLIST_INTERFACE) == 0) | 331 if (strcmp(name, PPB_GPU_BLACKLIST_INTERFACE) == 0) |
| 329 return PPB_GpuBlacklist_Private_Impl::GetInterface(); | 332 return PPB_GpuBlacklist_Private_Impl::GetInterface(); |
| 330 if (strcmp(name, PPB_GRAPHICS_3D_TRUSTED_INTERFACE_1_0) == 0) | 333 if (strcmp(name, PPB_GRAPHICS_3D_TRUSTED_INTERFACE_1_0) == 0) |
| 331 return ::ppapi::thunk::GetPPB_Graphics3DTrusted_1_0_Thunk(); | 334 return ::ppapi::thunk::GetPPB_Graphics3DTrusted_1_0_Thunk(); |
| 332 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE_0_4) == 0) | 335 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE_0_4) == 0) |
| 333 return ::ppapi::thunk::GetPPB_ImageDataTrusted_0_4_Thunk(); | 336 return ::ppapi::thunk::GetPPB_ImageDataTrusted_0_4_Thunk(); |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 int retval = entry_points.initialize_module(pp_module(), &GetInterface); | 606 int retval = entry_points.initialize_module(pp_module(), &GetInterface); |
| 604 if (retval != 0) { | 607 if (retval != 0) { |
| 605 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 608 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; |
| 606 return false; | 609 return false; |
| 607 } | 610 } |
| 608 return true; | 611 return true; |
| 609 } | 612 } |
| 610 | 613 |
| 611 } // namespace ppapi | 614 } // namespace ppapi |
| 612 } // namespace webkit | 615 } // namespace webkit |
| OLD | NEW |