| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 return ::ppapi::thunk::GetPPB_CharSet_Thunk(); | 263 return ::ppapi::thunk::GetPPB_CharSet_Thunk(); |
| 264 if (strcmp(name, PPB_CONSOLE_DEV_INTERFACE) == 0) | 264 if (strcmp(name, PPB_CONSOLE_DEV_INTERFACE) == 0) |
| 265 return PPB_Console_Impl::GetInterface(); | 265 return PPB_Console_Impl::GetInterface(); |
| 266 if (strcmp(name, PPB_CORE_INTERFACE) == 0) | 266 if (strcmp(name, PPB_CORE_INTERFACE) == 0) |
| 267 return &core_interface; | 267 return &core_interface; |
| 268 if (strcmp(name, PPB_CRYPTO_DEV_INTERFACE) == 0) | 268 if (strcmp(name, PPB_CRYPTO_DEV_INTERFACE) == 0) |
| 269 return PPB_Crypto_Impl::GetInterface(); | 269 return PPB_Crypto_Impl::GetInterface(); |
| 270 if (strcmp(name, PPB_CURSOR_CONTROL_DEV_INTERFACE) == 0) | 270 if (strcmp(name, PPB_CURSOR_CONTROL_DEV_INTERFACE) == 0) |
| 271 return ::ppapi::thunk::GetPPB_CursorControl_Thunk(); | 271 return ::ppapi::thunk::GetPPB_CursorControl_Thunk(); |
| 272 if (strcmp(name, PPB_DIRECTORYREADER_DEV_INTERFACE) == 0) | 272 if (strcmp(name, PPB_DIRECTORYREADER_DEV_INTERFACE) == 0) |
| 273 return ::ppapi::thunk::GetPPB_DirectoryReader_Thunk(); | 273 return PPB_DirectoryReader_Impl::GetInterface(); |
| 274 if (strcmp(name, PPB_FILECHOOSER_DEV_INTERFACE) == 0) | 274 if (strcmp(name, PPB_FILECHOOSER_DEV_INTERFACE) == 0) |
| 275 return ::ppapi::thunk::GetPPB_FileChooser_Thunk(); | 275 return PPB_FileChooser_Impl::GetInterface(); |
| 276 if (strcmp(name, PPB_FILEIO_DEV_INTERFACE) == 0) | 276 if (strcmp(name, PPB_FILEIO_DEV_INTERFACE) == 0) |
| 277 return ::ppapi::thunk::GetPPB_FileIO_Thunk(); | 277 return PPB_FileIO_Impl::GetInterface(); |
| 278 if (strcmp(name, PPB_NACL_PRIVATE_INTERFACE) == 0) | 278 if (strcmp(name, PPB_NACL_PRIVATE_INTERFACE) == 0) |
| 279 return PPB_NaCl_Private_Impl::GetInterface(); | 279 return PPB_NaCl_Private_Impl::GetInterface(); |
| 280 if (strcmp(name, PPB_FILEIOTRUSTED_DEV_INTERFACE) == 0) | 280 if (strcmp(name, PPB_FILEIOTRUSTED_DEV_INTERFACE) == 0) |
| 281 return ::ppapi::thunk::GetPPB_FileIOTrusted_Thunk(); | 281 return PPB_FileIO_Impl::GetTrustedInterface(); |
| 282 if (strcmp(name, PPB_FILEREF_DEV_INTERFACE) == 0) | 282 if (strcmp(name, PPB_FILEREF_DEV_INTERFACE) == 0) |
| 283 return ::ppapi::thunk::GetPPB_FileRef_Thunk(); | 283 return PPB_FileRef_Impl::GetInterface(); |
| 284 if (strcmp(name, PPB_FILESYSTEM_DEV_INTERFACE) == 0) | 284 if (strcmp(name, PPB_FILESYSTEM_DEV_INTERFACE) == 0) |
| 285 return ::ppapi::thunk::GetPPB_FileSystem_Thunk(); | 285 return PPB_FileSystem_Impl::GetInterface(); |
| 286 if (strcmp(name, PPB_FIND_DEV_INTERFACE) == 0) | 286 if (strcmp(name, PPB_FIND_DEV_INTERFACE) == 0) |
| 287 return ::ppapi::thunk::GetPPB_Find_Thunk(); | 287 return PluginInstance::GetFindInterface(); |
| 288 if (strcmp(name, PPB_FLASH_INTERFACE) == 0) | 288 if (strcmp(name, PPB_FLASH_INTERFACE) == 0) |
| 289 return PPB_Flash_Impl::GetInterface(); | 289 return PPB_Flash_Impl::GetInterface(); |
| 290 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE) == 0) | 290 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE) == 0) |
| 291 return PPB_Flash_Clipboard_Impl::GetInterface(); | 291 return PPB_Flash_Clipboard_Impl::GetInterface(); |
| 292 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) | 292 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) |
| 293 return PPB_Flash_File_FileRef_Impl::GetInterface(); | 293 return PPB_Flash_File_FileRef_Impl::GetInterface(); |
| 294 if (strcmp(name, PPB_FLASH_FILE_MODULELOCAL_INTERFACE) == 0) | 294 if (strcmp(name, PPB_FLASH_FILE_MODULELOCAL_INTERFACE) == 0) |
| 295 return PPB_Flash_File_ModuleLocal_Impl::GetInterface(); | 295 return PPB_Flash_File_ModuleLocal_Impl::GetInterface(); |
| 296 if (strcmp(name, PPB_FLASH_MENU_INTERFACE) == 0) | 296 if (strcmp(name, PPB_FLASH_MENU_INTERFACE) == 0) |
| 297 return PPB_Flash_Menu_Impl::GetInterface(); | 297 return PPB_Flash_Menu_Impl::GetInterface(); |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 int retval = entry_points_.initialize_module(pp_module(), &GetInterface); | 600 int retval = entry_points_.initialize_module(pp_module(), &GetInterface); |
| 601 if (retval != 0) { | 601 if (retval != 0) { |
| 602 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 602 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; |
| 603 return false; | 603 return false; |
| 604 } | 604 } |
| 605 return true; | 605 return true; |
| 606 } | 606 } |
| 607 | 607 |
| 608 } // namespace ppapi | 608 } // namespace ppapi |
| 609 } // namespace webkit | 609 } // namespace webkit |
| OLD | NEW |