| 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/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 #include "ppapi/c/private/ppb_flash_clipboard.h" | 59 #include "ppapi/c/private/ppb_flash_clipboard.h" |
| 60 #include "ppapi/c/private/ppb_flash_file.h" | 60 #include "ppapi/c/private/ppb_flash_file.h" |
| 61 #include "ppapi/c/private/ppb_flash_menu.h" | 61 #include "ppapi/c/private/ppb_flash_menu.h" |
| 62 #include "ppapi/c/private/ppb_flash_net_connector.h" | 62 #include "ppapi/c/private/ppb_flash_net_connector.h" |
| 63 #include "ppapi/c/private/ppb_instance_private.h" | 63 #include "ppapi/c/private/ppb_instance_private.h" |
| 64 #include "ppapi/c/private/ppb_pdf.h" | 64 #include "ppapi/c/private/ppb_pdf.h" |
| 65 #include "ppapi/c/private/ppb_proxy_private.h" | 65 #include "ppapi/c/private/ppb_proxy_private.h" |
| 66 #include "ppapi/c/private/ppb_uma_private.h" | 66 #include "ppapi/c/private/ppb_uma_private.h" |
| 67 #include "ppapi/c/trusted/ppb_audio_trusted.h" | 67 #include "ppapi/c/trusted/ppb_audio_trusted.h" |
| 68 #include "ppapi/c/trusted/ppb_broker_trusted.h" | 68 #include "ppapi/c/trusted/ppb_broker_trusted.h" |
| 69 #include "ppapi/c/trusted/ppb_buffer_trusted.h" |
| 69 #include "ppapi/c/trusted/ppb_image_data_trusted.h" | 70 #include "ppapi/c/trusted/ppb_image_data_trusted.h" |
| 70 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" | 71 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" |
| 71 #include "ppapi/thunk/thunk.h" | 72 #include "ppapi/thunk/thunk.h" |
| 72 #include "webkit/plugins/ppapi/callbacks.h" | 73 #include "webkit/plugins/ppapi/callbacks.h" |
| 73 #include "webkit/plugins/ppapi/common.h" | 74 #include "webkit/plugins/ppapi/common.h" |
| 74 #include "webkit/plugins/ppapi/ppapi_interface_factory.h" | 75 #include "webkit/plugins/ppapi/ppapi_interface_factory.h" |
| 75 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 76 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
| 76 #include "webkit/plugins/ppapi/ppb_console_impl.h" | 77 #include "webkit/plugins/ppapi/ppb_console_impl.h" |
| 77 #include "webkit/plugins/ppapi/ppb_crypto_impl.h" | 78 #include "webkit/plugins/ppapi/ppb_crypto_impl.h" |
| 78 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h" | 79 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h" |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 if (strcmp(name, PPB_AUDIO_CONFIG_INTERFACE) == 0) | 251 if (strcmp(name, PPB_AUDIO_CONFIG_INTERFACE) == 0) |
| 251 return ::ppapi::thunk::GetPPB_AudioConfig_Thunk(); | 252 return ::ppapi::thunk::GetPPB_AudioConfig_Thunk(); |
| 252 if (strcmp(name, PPB_AUDIO_INTERFACE) == 0) | 253 if (strcmp(name, PPB_AUDIO_INTERFACE) == 0) |
| 253 return ::ppapi::thunk::GetPPB_Audio_Thunk(); | 254 return ::ppapi::thunk::GetPPB_Audio_Thunk(); |
| 254 if (strcmp(name, PPB_AUDIO_TRUSTED_INTERFACE) == 0) | 255 if (strcmp(name, PPB_AUDIO_TRUSTED_INTERFACE) == 0) |
| 255 return ::ppapi::thunk::GetPPB_AudioTrusted_Thunk(); | 256 return ::ppapi::thunk::GetPPB_AudioTrusted_Thunk(); |
| 256 if (strcmp(name, PPB_BROKER_TRUSTED_INTERFACE) == 0) | 257 if (strcmp(name, PPB_BROKER_TRUSTED_INTERFACE) == 0) |
| 257 return ::ppapi::thunk::GetPPB_Broker_Thunk(); | 258 return ::ppapi::thunk::GetPPB_Broker_Thunk(); |
| 258 if (strcmp(name, PPB_BUFFER_DEV_INTERFACE) == 0) | 259 if (strcmp(name, PPB_BUFFER_DEV_INTERFACE) == 0) |
| 259 return ::ppapi::thunk::GetPPB_Buffer_Thunk(); | 260 return ::ppapi::thunk::GetPPB_Buffer_Thunk(); |
| 261 if (strcmp(name, PPB_BUFFER_TRUSTED_INTERFACE) == 0) |
| 262 return ::ppapi::thunk::GetPPB_BufferTrusted_Thunk(); |
| 260 if (strcmp(name, PPB_CHAR_SET_DEV_INTERFACE) == 0) | 263 if (strcmp(name, PPB_CHAR_SET_DEV_INTERFACE) == 0) |
| 261 return ::ppapi::thunk::GetPPB_CharSet_Thunk(); | 264 return ::ppapi::thunk::GetPPB_CharSet_Thunk(); |
| 262 if (strcmp(name, PPB_CONSOLE_DEV_INTERFACE) == 0) | 265 if (strcmp(name, PPB_CONSOLE_DEV_INTERFACE) == 0) |
| 263 return PPB_Console_Impl::GetInterface(); | 266 return PPB_Console_Impl::GetInterface(); |
| 264 if (strcmp(name, PPB_CORE_INTERFACE) == 0) | 267 if (strcmp(name, PPB_CORE_INTERFACE) == 0) |
| 265 return &core_interface; | 268 return &core_interface; |
| 266 if (strcmp(name, PPB_CRYPTO_DEV_INTERFACE) == 0) | 269 if (strcmp(name, PPB_CRYPTO_DEV_INTERFACE) == 0) |
| 267 return PPB_Crypto_Impl::GetInterface(); | 270 return PPB_Crypto_Impl::GetInterface(); |
| 268 if (strcmp(name, PPB_CURSOR_CONTROL_DEV_INTERFACE) == 0) | 271 if (strcmp(name, PPB_CURSOR_CONTROL_DEV_INTERFACE) == 0) |
| 269 return ::ppapi::thunk::GetPPB_CursorControl_Thunk(); | 272 return ::ppapi::thunk::GetPPB_CursorControl_Thunk(); |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 int retval = entry_points_.initialize_module(pp_module(), &GetInterface); | 599 int retval = entry_points_.initialize_module(pp_module(), &GetInterface); |
| 597 if (retval != 0) { | 600 if (retval != 0) { |
| 598 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 601 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; |
| 599 return false; | 602 return false; |
| 600 } | 603 } |
| 601 return true; | 604 return true; |
| 602 } | 605 } |
| 603 | 606 |
| 604 } // namespace ppapi | 607 } // namespace ppapi |
| 605 } // namespace webkit | 608 } // namespace webkit |
| OLD | NEW |