| 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 return ::ppapi::thunk::GetPPB_CharSet_Thunk(); | 255 return ::ppapi::thunk::GetPPB_CharSet_Thunk(); |
| 256 if (strcmp(name, PPB_CONSOLE_DEV_INTERFACE) == 0) | 256 if (strcmp(name, PPB_CONSOLE_DEV_INTERFACE) == 0) |
| 257 return PPB_Console_Impl::GetInterface(); | 257 return PPB_Console_Impl::GetInterface(); |
| 258 if (strcmp(name, PPB_CORE_INTERFACE) == 0) | 258 if (strcmp(name, PPB_CORE_INTERFACE) == 0) |
| 259 return &core_interface; | 259 return &core_interface; |
| 260 if (strcmp(name, PPB_CRYPTO_DEV_INTERFACE) == 0) | 260 if (strcmp(name, PPB_CRYPTO_DEV_INTERFACE) == 0) |
| 261 return PPB_Crypto_Impl::GetInterface(); | 261 return PPB_Crypto_Impl::GetInterface(); |
| 262 if (strcmp(name, PPB_CURSOR_CONTROL_DEV_INTERFACE) == 0) | 262 if (strcmp(name, PPB_CURSOR_CONTROL_DEV_INTERFACE) == 0) |
| 263 return ::ppapi::thunk::GetPPB_CursorControl_Thunk(); | 263 return ::ppapi::thunk::GetPPB_CursorControl_Thunk(); |
| 264 if (strcmp(name, PPB_DIRECTORYREADER_DEV_INTERFACE) == 0) | 264 if (strcmp(name, PPB_DIRECTORYREADER_DEV_INTERFACE) == 0) |
| 265 return PPB_DirectoryReader_Impl::GetInterface(); | 265 return ::ppapi::thunk::GetPPB_DirectoryReader_Thunk(); |
| 266 if (strcmp(name, PPB_FILECHOOSER_DEV_INTERFACE) == 0) | 266 if (strcmp(name, PPB_FILECHOOSER_DEV_INTERFACE) == 0) |
| 267 return PPB_FileChooser_Impl::GetInterface(); | 267 return ::ppapi::thunk::GetPPB_FileChooser_Thunk(); |
| 268 if (strcmp(name, PPB_FILEIO_DEV_INTERFACE) == 0) | 268 if (strcmp(name, PPB_FILEIO_DEV_INTERFACE) == 0) |
| 269 return PPB_FileIO_Impl::GetInterface(); | 269 return ::ppapi::thunk::GetPPB_FileIO_Thunk(); |
| 270 if (strcmp(name, PPB_NACL_PRIVATE_INTERFACE) == 0) | 270 if (strcmp(name, PPB_NACL_PRIVATE_INTERFACE) == 0) |
| 271 return PPB_NaCl_Private_Impl::GetInterface(); | 271 return PPB_NaCl_Private_Impl::GetInterface(); |
| 272 if (strcmp(name, PPB_FILEIOTRUSTED_DEV_INTERFACE) == 0) | 272 if (strcmp(name, PPB_FILEIOTRUSTED_DEV_INTERFACE) == 0) |
| 273 return PPB_FileIO_Impl::GetTrustedInterface(); | 273 return ::ppapi::thunk::GetPPB_FileIOTrusted_Thunk(); |
| 274 if (strcmp(name, PPB_FILEREF_DEV_INTERFACE) == 0) | 274 if (strcmp(name, PPB_FILEREF_DEV_INTERFACE) == 0) |
| 275 return PPB_FileRef_Impl::GetInterface(); | 275 return ::ppapi::thunk::GetPPB_FileRef_Thunk(); |
| 276 if (strcmp(name, PPB_FILESYSTEM_DEV_INTERFACE) == 0) | 276 if (strcmp(name, PPB_FILESYSTEM_DEV_INTERFACE) == 0) |
| 277 return PPB_FileSystem_Impl::GetInterface(); | 277 return ::ppapi::thunk::GetPPB_FileSystem_Thunk(); |
| 278 if (strcmp(name, PPB_FIND_DEV_INTERFACE) == 0) | 278 if (strcmp(name, PPB_FIND_DEV_INTERFACE) == 0) |
| 279 return PluginInstance::GetFindInterface(); | 279 return ::ppapi::thunk::GetPPB_Find_Thunk(); |
| 280 if (strcmp(name, PPB_FLASH_INTERFACE) == 0) | 280 if (strcmp(name, PPB_FLASH_INTERFACE) == 0) |
| 281 return PPB_Flash_Impl::GetInterface(); | 281 return PPB_Flash_Impl::GetInterface(); |
| 282 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE) == 0) | 282 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE) == 0) |
| 283 return PPB_Flash_Clipboard_Impl::GetInterface(); | 283 return PPB_Flash_Clipboard_Impl::GetInterface(); |
| 284 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) | 284 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) |
| 285 return PPB_Flash_File_FileRef_Impl::GetInterface(); | 285 return PPB_Flash_File_FileRef_Impl::GetInterface(); |
| 286 if (strcmp(name, PPB_FLASH_FILE_MODULELOCAL_INTERFACE) == 0) | 286 if (strcmp(name, PPB_FLASH_FILE_MODULELOCAL_INTERFACE) == 0) |
| 287 return PPB_Flash_File_ModuleLocal_Impl::GetInterface(); | 287 return PPB_Flash_File_ModuleLocal_Impl::GetInterface(); |
| 288 if (strcmp(name, PPB_FLASH_MENU_INTERFACE) == 0) | 288 if (strcmp(name, PPB_FLASH_MENU_INTERFACE) == 0) |
| 289 return PPB_Flash_Menu_Impl::GetInterface(); | 289 return PPB_Flash_Menu_Impl::GetInterface(); |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 int retval = entry_points_.initialize_module(pp_module(), &GetInterface); | 592 int retval = entry_points_.initialize_module(pp_module(), &GetInterface); |
| 593 if (retval != 0) { | 593 if (retval != 0) { |
| 594 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 594 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; |
| 595 return false; | 595 return false; |
| 596 } | 596 } |
| 597 return true; | 597 return true; |
| 598 } | 598 } |
| 599 | 599 |
| 600 } // namespace ppapi | 600 } // namespace ppapi |
| 601 } // namespace webkit | 601 } // namespace webkit |
| OLD | NEW |