| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 28 matching lines...) Expand all Loading... |
| 39 #include "ppapi/c/ppb_core.h" | 39 #include "ppapi/c/ppb_core.h" |
| 40 #include "ppapi/c/ppb_graphics_2d.h" | 40 #include "ppapi/c/ppb_graphics_2d.h" |
| 41 #include "ppapi/c/ppb_image_data.h" | 41 #include "ppapi/c/ppb_image_data.h" |
| 42 #include "ppapi/c/ppb_instance.h" | 42 #include "ppapi/c/ppb_instance.h" |
| 43 #include "ppapi/c/ppb_url_loader.h" | 43 #include "ppapi/c/ppb_url_loader.h" |
| 44 #include "ppapi/c/ppb_url_request_info.h" | 44 #include "ppapi/c/ppb_url_request_info.h" |
| 45 #include "ppapi/c/ppb_url_response_info.h" | 45 #include "ppapi/c/ppb_url_response_info.h" |
| 46 #include "ppapi/c/ppb_var.h" | 46 #include "ppapi/c/ppb_var.h" |
| 47 #include "ppapi/c/ppp.h" | 47 #include "ppapi/c/ppp.h" |
| 48 #include "ppapi/c/ppp_instance.h" | 48 #include "ppapi/c/ppp_instance.h" |
| 49 #include "ppapi/c/private/ppb_nacl_util_private.h" |
| 49 #include "ppapi/c/trusted/ppb_image_data_trusted.h" | 50 #include "ppapi/c/trusted/ppb_image_data_trusted.h" |
| 50 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" | 51 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" |
| 51 #include "webkit/plugins/ppapi/common.h" | 52 #include "webkit/plugins/ppapi/common.h" |
| 52 #include "webkit/plugins/ppapi/plugin_object.h" | 53 #include "webkit/plugins/ppapi/plugin_object.h" |
| 53 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 54 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
| 54 #include "webkit/plugins/ppapi/ppb_audio_impl.h" | 55 #include "webkit/plugins/ppapi/ppb_audio_impl.h" |
| 55 #include "webkit/plugins/ppapi/ppb_buffer_impl.h" | 56 #include "webkit/plugins/ppapi/ppb_buffer_impl.h" |
| 56 #include "webkit/plugins/ppapi/ppb_char_set_impl.h" | 57 #include "webkit/plugins/ppapi/ppb_char_set_impl.h" |
| 57 #include "webkit/plugins/ppapi/ppb_cursor_control_impl.h" | 58 #include "webkit/plugins/ppapi/ppb_cursor_control_impl.h" |
| 58 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h" | 59 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h" |
| 59 #include "webkit/plugins/ppapi/ppb_file_chooser_impl.h" | 60 #include "webkit/plugins/ppapi/ppb_file_chooser_impl.h" |
| 60 #include "webkit/plugins/ppapi/ppb_file_io_impl.h" | 61 #include "webkit/plugins/ppapi/ppb_file_io_impl.h" |
| 61 #include "webkit/plugins/ppapi/ppb_file_ref_impl.h" | 62 #include "webkit/plugins/ppapi/ppb_file_ref_impl.h" |
| 62 #include "webkit/plugins/ppapi/ppb_file_system_impl.h" | 63 #include "webkit/plugins/ppapi/ppb_file_system_impl.h" |
| 63 #include "webkit/plugins/ppapi/ppb_flash.h" | 64 #include "webkit/plugins/ppapi/ppb_flash.h" |
| 64 #include "webkit/plugins/ppapi/ppb_flash_impl.h" | 65 #include "webkit/plugins/ppapi/ppb_flash_impl.h" |
| 65 #include "webkit/plugins/ppapi/ppb_font_impl.h" | 66 #include "webkit/plugins/ppapi/ppb_font_impl.h" |
| 66 #include "webkit/plugins/ppapi/ppb_graphics_2d_impl.h" | 67 #include "webkit/plugins/ppapi/ppb_graphics_2d_impl.h" |
| 67 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" | 68 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" |
| 69 #include "webkit/plugins/ppapi/ppb_nacl_util_private_impl.h" |
| 68 #include "webkit/plugins/ppapi/ppb_pdf.h" | 70 #include "webkit/plugins/ppapi/ppb_pdf.h" |
| 69 #include "webkit/plugins/ppapi/ppb_pdf_impl.h" | 71 #include "webkit/plugins/ppapi/ppb_pdf_impl.h" |
| 70 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" | 72 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" |
| 71 #include "webkit/plugins/ppapi/ppb_transport_impl.h" | 73 #include "webkit/plugins/ppapi/ppb_transport_impl.h" |
| 72 #include "webkit/plugins/ppapi/ppb_url_loader_impl.h" | 74 #include "webkit/plugins/ppapi/ppb_url_loader_impl.h" |
| 73 #include "webkit/plugins/ppapi/ppb_url_request_info_impl.h" | 75 #include "webkit/plugins/ppapi/ppb_url_request_info_impl.h" |
| 74 #include "webkit/plugins/ppapi/ppb_url_response_info_impl.h" | 76 #include "webkit/plugins/ppapi/ppb_url_response_info_impl.h" |
| 75 #include "webkit/plugins/ppapi/ppb_url_util_impl.h" | 77 #include "webkit/plugins/ppapi/ppb_url_util_impl.h" |
| 76 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" | 78 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" |
| 77 #include "webkit/plugins/ppapi/ppb_widget_impl.h" | 79 #include "webkit/plugins/ppapi/ppb_widget_impl.h" |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 if (strcmp(name, PPB_CORE_INTERFACE) == 0) | 219 if (strcmp(name, PPB_CORE_INTERFACE) == 0) |
| 218 return &core_interface; | 220 return &core_interface; |
| 219 if (strcmp(name, PPB_CURSOR_CONTROL_DEV_INTERFACE) == 0) | 221 if (strcmp(name, PPB_CURSOR_CONTROL_DEV_INTERFACE) == 0) |
| 220 return GetCursorControlInterface(); | 222 return GetCursorControlInterface(); |
| 221 if (strcmp(name, PPB_DIRECTORYREADER_DEV_INTERFACE) == 0) | 223 if (strcmp(name, PPB_DIRECTORYREADER_DEV_INTERFACE) == 0) |
| 222 return PPB_DirectoryReader_Impl::GetInterface(); | 224 return PPB_DirectoryReader_Impl::GetInterface(); |
| 223 if (strcmp(name, PPB_FILECHOOSER_DEV_INTERFACE) == 0) | 225 if (strcmp(name, PPB_FILECHOOSER_DEV_INTERFACE) == 0) |
| 224 return PPB_FileChooser_Impl::GetInterface(); | 226 return PPB_FileChooser_Impl::GetInterface(); |
| 225 if (strcmp(name, PPB_FILEIO_DEV_INTERFACE) == 0) | 227 if (strcmp(name, PPB_FILEIO_DEV_INTERFACE) == 0) |
| 226 return PPB_FileIO_Impl::GetInterface(); | 228 return PPB_FileIO_Impl::GetInterface(); |
| 229 if (strcmp(name, PPB_NACLUTIL_PRIVATE_INTERFACE) == 0) |
| 230 return PPB_NaClUtil_Private_Impl::GetInterface(); |
| 227 if (strcmp(name, PPB_FILEIOTRUSTED_DEV_INTERFACE) == 0) | 231 if (strcmp(name, PPB_FILEIOTRUSTED_DEV_INTERFACE) == 0) |
| 228 return PPB_FileIO_Impl::GetTrustedInterface(); | 232 return PPB_FileIO_Impl::GetTrustedInterface(); |
| 229 if (strcmp(name, PPB_FILEREF_DEV_INTERFACE) == 0) | 233 if (strcmp(name, PPB_FILEREF_DEV_INTERFACE) == 0) |
| 230 return PPB_FileRef_Impl::GetInterface(); | 234 return PPB_FileRef_Impl::GetInterface(); |
| 231 if (strcmp(name, PPB_FILESYSTEM_DEV_INTERFACE) == 0) | 235 if (strcmp(name, PPB_FILESYSTEM_DEV_INTERFACE) == 0) |
| 232 return PPB_FileSystem_Impl::GetInterface(); | 236 return PPB_FileSystem_Impl::GetInterface(); |
| 233 if (strcmp(name, PPB_FIND_DEV_INTERFACE) == 0) | 237 if (strcmp(name, PPB_FIND_DEV_INTERFACE) == 0) |
| 234 return PluginInstance::GetFindInterface(); | 238 return PluginInstance::GetFindInterface(); |
| 235 if (strcmp(name, PPB_FLASH_INTERFACE) == 0) | 239 if (strcmp(name, PPB_FLASH_INTERFACE) == 0) |
| 236 return PPB_Flash_Impl::GetInterface(); | 240 return PPB_Flash_Impl::GetInterface(); |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 if (retval != 0) { | 493 if (retval != 0) { |
| 490 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 494 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; |
| 491 return false; | 495 return false; |
| 492 } | 496 } |
| 493 return true; | 497 return true; |
| 494 } | 498 } |
| 495 | 499 |
| 496 } // namespace ppapi | 500 } // namespace ppapi |
| 497 } // namespace webkit | 501 } // namespace webkit |
| 498 | 502 |
| OLD | NEW |