| 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/logging.h" | 10 #include "base/logging.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 #include "ppapi/c/ppb_url_loader.h" | 59 #include "ppapi/c/ppb_url_loader.h" |
| 60 #include "ppapi/c/ppb_url_request_info.h" | 60 #include "ppapi/c/ppb_url_request_info.h" |
| 61 #include "ppapi/c/ppb_url_response_info.h" | 61 #include "ppapi/c/ppb_url_response_info.h" |
| 62 #include "ppapi/c/ppb_var.h" | 62 #include "ppapi/c/ppb_var.h" |
| 63 #include "ppapi/c/ppp.h" | 63 #include "ppapi/c/ppp.h" |
| 64 #include "ppapi/c/ppp_instance.h" | 64 #include "ppapi/c/ppp_instance.h" |
| 65 #include "ppapi/c/private/ppb_flash.h" | 65 #include "ppapi/c/private/ppb_flash.h" |
| 66 #include "ppapi/c/private/ppb_flash_clipboard.h" | 66 #include "ppapi/c/private/ppb_flash_clipboard.h" |
| 67 #include "ppapi/c/private/ppb_flash_file.h" | 67 #include "ppapi/c/private/ppb_flash_file.h" |
| 68 #include "ppapi/c/private/ppb_flash_tcp_socket.h" | 68 #include "ppapi/c/private/ppb_flash_tcp_socket.h" |
| 69 #include "ppapi/c/private/ppb_flash_udp_socket.h" |
| 69 #include "ppapi/c/private/ppb_instance_private.h" | 70 #include "ppapi/c/private/ppb_instance_private.h" |
| 70 #include "ppapi/c/private/ppb_pdf.h" | 71 #include "ppapi/c/private/ppb_pdf.h" |
| 71 #include "ppapi/c/private/ppb_proxy_private.h" | 72 #include "ppapi/c/private/ppb_proxy_private.h" |
| 72 #include "ppapi/c/private/ppb_uma_private.h" | 73 #include "ppapi/c/private/ppb_uma_private.h" |
| 73 #include "ppapi/c/trusted/ppb_audio_trusted.h" | 74 #include "ppapi/c/trusted/ppb_audio_trusted.h" |
| 74 #include "ppapi/c/trusted/ppb_broker_trusted.h" | 75 #include "ppapi/c/trusted/ppb_broker_trusted.h" |
| 75 #include "ppapi/c/trusted/ppb_buffer_trusted.h" | 76 #include "ppapi/c/trusted/ppb_buffer_trusted.h" |
| 76 #include "ppapi/c/trusted/ppb_file_io_trusted.h" | 77 #include "ppapi/c/trusted/ppb_file_io_trusted.h" |
| 77 #include "ppapi/c/trusted/ppb_image_data_trusted.h" | 78 #include "ppapi/c/trusted/ppb_image_data_trusted.h" |
| 78 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" | 79 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE) == 0) | 265 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE) == 0) |
| 265 return PPB_Flash_Clipboard_Impl::GetInterface(); | 266 return PPB_Flash_Clipboard_Impl::GetInterface(); |
| 266 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) | 267 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) |
| 267 return PPB_Flash_File_FileRef_Impl::GetInterface(); | 268 return PPB_Flash_File_FileRef_Impl::GetInterface(); |
| 268 if (strcmp(name, PPB_FLASH_FILE_MODULELOCAL_INTERFACE) == 0) | 269 if (strcmp(name, PPB_FLASH_FILE_MODULELOCAL_INTERFACE) == 0) |
| 269 return PPB_Flash_File_ModuleLocal_Impl::GetInterface(); | 270 return PPB_Flash_File_ModuleLocal_Impl::GetInterface(); |
| 270 if (strcmp(name, PPB_FLASH_MENU_INTERFACE) == 0) | 271 if (strcmp(name, PPB_FLASH_MENU_INTERFACE) == 0) |
| 271 return ::ppapi::thunk::GetPPB_Flash_Menu_Thunk(); | 272 return ::ppapi::thunk::GetPPB_Flash_Menu_Thunk(); |
| 272 if (strcmp(name, PPB_FLASH_TCPSOCKET_INTERFACE) == 0) | 273 if (strcmp(name, PPB_FLASH_TCPSOCKET_INTERFACE) == 0) |
| 273 return ::ppapi::thunk::GetPPB_Flash_TCPSocket_Thunk(); | 274 return ::ppapi::thunk::GetPPB_Flash_TCPSocket_Thunk(); |
| 275 if (strcmp(name, PPB_FLASH_UDPSOCKET_INTERFACE) == 0) |
| 276 return ::ppapi::thunk::GetPPB_Flash_UDPSocket_Thunk(); |
| 274 if (strcmp(name, PPB_FONT_DEV_INTERFACE) == 0) | 277 if (strcmp(name, PPB_FONT_DEV_INTERFACE) == 0) |
| 275 return ::ppapi::thunk::GetPPB_Font_Thunk(); | 278 return ::ppapi::thunk::GetPPB_Font_Thunk(); |
| 276 if (strcmp(name, PPB_FULLSCREEN_DEV_INTERFACE) == 0) | 279 if (strcmp(name, PPB_FULLSCREEN_DEV_INTERFACE) == 0) |
| 277 return ::ppapi::thunk::GetPPB_Fullscreen_Thunk(); | 280 return ::ppapi::thunk::GetPPB_Fullscreen_Thunk(); |
| 278 if (strcmp(name, PPB_GRAPHICS_2D_INTERFACE_1_0) == 0) | 281 if (strcmp(name, PPB_GRAPHICS_2D_INTERFACE_1_0) == 0) |
| 279 return ::ppapi::thunk::GetPPB_Graphics2D_Thunk(); | 282 return ::ppapi::thunk::GetPPB_Graphics2D_Thunk(); |
| 280 if (strcmp(name, PPB_IMAGEDATA_INTERFACE_1_0) == 0) | 283 if (strcmp(name, PPB_IMAGEDATA_INTERFACE_1_0) == 0) |
| 281 return ::ppapi::thunk::GetPPB_ImageData_Thunk(); | 284 return ::ppapi::thunk::GetPPB_ImageData_Thunk(); |
| 282 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE) == 0) | 285 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE) == 0) |
| 283 return ::ppapi::thunk::GetPPB_ImageDataTrusted_Thunk(); | 286 return ::ppapi::thunk::GetPPB_ImageDataTrusted_Thunk(); |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 int retval = entry_points.initialize_module(pp_module(), &GetInterface); | 594 int retval = entry_points.initialize_module(pp_module(), &GetInterface); |
| 592 if (retval != 0) { | 595 if (retval != 0) { |
| 593 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 596 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; |
| 594 return false; | 597 return false; |
| 595 } | 598 } |
| 596 return true; | 599 return true; |
| 597 } | 600 } |
| 598 | 601 |
| 599 } // namespace ppapi | 602 } // namespace ppapi |
| 600 } // namespace webkit | 603 } // namespace webkit |
| OLD | NEW |