| 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 27 matching lines...) Expand all Loading... |
| 38 #include "ppapi/c/dev/ppb_video_decoder_dev.h" | 38 #include "ppapi/c/dev/ppb_video_decoder_dev.h" |
| 39 #include "ppapi/c/dev/ppb_video_layer_dev.h" | 39 #include "ppapi/c/dev/ppb_video_layer_dev.h" |
| 40 #include "ppapi/c/dev/ppb_widget_dev.h" | 40 #include "ppapi/c/dev/ppb_widget_dev.h" |
| 41 #include "ppapi/c/dev/ppb_zoom_dev.h" | 41 #include "ppapi/c/dev/ppb_zoom_dev.h" |
| 42 #include "ppapi/c/pp_module.h" | 42 #include "ppapi/c/pp_module.h" |
| 43 #include "ppapi/c/pp_resource.h" | 43 #include "ppapi/c/pp_resource.h" |
| 44 #include "ppapi/c/pp_var.h" | 44 #include "ppapi/c/pp_var.h" |
| 45 #include "ppapi/c/ppb_audio.h" | 45 #include "ppapi/c/ppb_audio.h" |
| 46 #include "ppapi/c/ppb_audio_config.h" | 46 #include "ppapi/c/ppb_audio_config.h" |
| 47 #include "ppapi/c/ppb_core.h" | 47 #include "ppapi/c/ppb_core.h" |
| 48 #include "ppapi/c/ppb_fullscreen.h" |
| 48 #include "ppapi/c/ppb_file_io.h" | 49 #include "ppapi/c/ppb_file_io.h" |
| 49 #include "ppapi/c/ppb_file_ref.h" | 50 #include "ppapi/c/ppb_file_ref.h" |
| 50 #include "ppapi/c/ppb_file_system.h" | 51 #include "ppapi/c/ppb_file_system.h" |
| 51 #include "ppapi/c/ppb_graphics_2d.h" | 52 #include "ppapi/c/ppb_graphics_2d.h" |
| 52 #include "ppapi/c/ppb_graphics_3d.h" | 53 #include "ppapi/c/ppb_graphics_3d.h" |
| 53 #include "ppapi/c/ppb_image_data.h" | 54 #include "ppapi/c/ppb_image_data.h" |
| 54 #include "ppapi/c/ppb_instance.h" | 55 #include "ppapi/c/ppb_instance.h" |
| 55 #include "ppapi/c/ppb_messaging.h" | 56 #include "ppapi/c/ppb_messaging.h" |
| 56 #include "ppapi/c/ppb_opengles.h" | 57 #include "ppapi/c/ppb_opengles.h" |
| 57 #include "ppapi/c/ppb_url_loader.h" | 58 #include "ppapi/c/ppb_url_loader.h" |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) | 273 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) |
| 273 return PPB_Flash_File_FileRef_Impl::GetInterface(); | 274 return PPB_Flash_File_FileRef_Impl::GetInterface(); |
| 274 if (strcmp(name, PPB_FLASH_FILE_MODULELOCAL_INTERFACE) == 0) | 275 if (strcmp(name, PPB_FLASH_FILE_MODULELOCAL_INTERFACE) == 0) |
| 275 return PPB_Flash_File_ModuleLocal_Impl::GetInterface(); | 276 return PPB_Flash_File_ModuleLocal_Impl::GetInterface(); |
| 276 if (strcmp(name, PPB_FLASH_MENU_INTERFACE) == 0) | 277 if (strcmp(name, PPB_FLASH_MENU_INTERFACE) == 0) |
| 277 return ::ppapi::thunk::GetPPB_Flash_Menu_Thunk(); | 278 return ::ppapi::thunk::GetPPB_Flash_Menu_Thunk(); |
| 278 if (strcmp(name, PPB_FLASH_TCPSOCKET_INTERFACE) == 0) | 279 if (strcmp(name, PPB_FLASH_TCPSOCKET_INTERFACE) == 0) |
| 279 return ::ppapi::thunk::GetPPB_Flash_TCPSocket_Thunk(); | 280 return ::ppapi::thunk::GetPPB_Flash_TCPSocket_Thunk(); |
| 280 if (strcmp(name, PPB_FONT_DEV_INTERFACE) == 0) | 281 if (strcmp(name, PPB_FONT_DEV_INTERFACE) == 0) |
| 281 return ::ppapi::thunk::GetPPB_Font_Thunk(); | 282 return ::ppapi::thunk::GetPPB_Font_Thunk(); |
| 283 if (strcmp(name, PPB_FULLSCREEN_INTERFACE) == 0) |
| 284 return ::ppapi::thunk::GetPPB_Fullscreen_Thunk(); |
| 282 if (strcmp(name, PPB_FULLSCREEN_DEV_INTERFACE) == 0) | 285 if (strcmp(name, PPB_FULLSCREEN_DEV_INTERFACE) == 0) |
| 283 return ::ppapi::thunk::GetPPB_Fullscreen_Thunk(); | 286 return ::ppapi::thunk::GetPPB_Fullscreen_Dev_Thunk(); |
| 284 if (strcmp(name, PPB_GPU_BLACKLIST_INTERFACE) == 0) | 287 if (strcmp(name, PPB_GPU_BLACKLIST_INTERFACE) == 0) |
| 285 return PPB_GpuBlacklist_Private_Impl::GetInterface(); | 288 return PPB_GpuBlacklist_Private_Impl::GetInterface(); |
| 286 if (strcmp(name, PPB_GRAPHICS_2D_INTERFACE_1_0) == 0) | 289 if (strcmp(name, PPB_GRAPHICS_2D_INTERFACE_1_0) == 0) |
| 287 return ::ppapi::thunk::GetPPB_Graphics2D_Thunk(); | 290 return ::ppapi::thunk::GetPPB_Graphics2D_Thunk(); |
| 288 if (strcmp(name, PPB_IMAGEDATA_INTERFACE_1_0) == 0) | 291 if (strcmp(name, PPB_IMAGEDATA_INTERFACE_1_0) == 0) |
| 289 return ::ppapi::thunk::GetPPB_ImageData_Thunk(); | 292 return ::ppapi::thunk::GetPPB_ImageData_Thunk(); |
| 290 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE) == 0) | 293 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE) == 0) |
| 291 return ::ppapi::thunk::GetPPB_ImageDataTrusted_Thunk(); | 294 return ::ppapi::thunk::GetPPB_ImageDataTrusted_Thunk(); |
| 292 if (strcmp(name, PPB_INPUT_EVENT_INTERFACE_1_0) == 0) | 295 if (strcmp(name, PPB_INPUT_EVENT_INTERFACE_1_0) == 0) |
| 293 return ::ppapi::thunk::GetPPB_InputEvent_Thunk(); | 296 return ::ppapi::thunk::GetPPB_InputEvent_Thunk(); |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 int retval = entry_points.initialize_module(pp_module(), &GetInterface); | 605 int retval = entry_points.initialize_module(pp_module(), &GetInterface); |
| 603 if (retval != 0) { | 606 if (retval != 0) { |
| 604 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 607 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; |
| 605 return false; | 608 return false; |
| 606 } | 609 } |
| 607 return true; | 610 return true; |
| 608 } | 611 } |
| 609 | 612 |
| 610 } // namespace ppapi | 613 } // namespace ppapi |
| 611 } // namespace webkit | 614 } // namespace webkit |
| OLD | NEW |