OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 if (strcmp(name, PPB_CORE_INTERFACE_1_0) == 0) | 307 if (strcmp(name, PPB_CORE_INTERFACE_1_0) == 0) |
308 return &core_interface; | 308 return &core_interface; |
309 if (strcmp(name, PPB_FILECHOOSER_TRUSTED_INTERFACE_0_5) == 0) | 309 if (strcmp(name, PPB_FILECHOOSER_TRUSTED_INTERFACE_0_5) == 0) |
310 return ::ppapi::thunk::GetPPB_FileChooser_Trusted_0_5_Thunk(); | 310 return ::ppapi::thunk::GetPPB_FileChooser_Trusted_0_5_Thunk(); |
311 if (strcmp(name, PPB_FLASH_INTERFACE_11_0) == 0) | 311 if (strcmp(name, PPB_FLASH_INTERFACE_11_0) == 0) |
312 return PPB_Flash_Impl::GetInterface11(); | 312 return PPB_Flash_Impl::GetInterface11(); |
313 if (strcmp(name, PPB_FLASH_INTERFACE_12_0) == 0) | 313 if (strcmp(name, PPB_FLASH_INTERFACE_12_0) == 0) |
314 return PPB_Flash_Impl::GetInterface12_0(); | 314 return PPB_Flash_Impl::GetInterface12_0(); |
315 if (strcmp(name, PPB_FLASH_INTERFACE_12_1) == 0) | 315 if (strcmp(name, PPB_FLASH_INTERFACE_12_1) == 0) |
316 return PPB_Flash_Impl::GetInterface12_1(); | 316 return PPB_Flash_Impl::GetInterface12_1(); |
| 317 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE_4_0) == 0) |
| 318 return ::ppapi::thunk::GetPPB_Flash_Clipboard_4_0_Thunk(); |
317 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE_3_0) == 0) | 319 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE_3_0) == 0) |
318 return ::ppapi::thunk::GetPPB_Flash_Clipboard_3_0_Thunk(); | 320 return ::ppapi::thunk::GetPPB_Flash_Clipboard_3_0_Thunk(); |
319 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE_3_LEGACY) == 0) | 321 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE_3_LEGACY) == 0) |
320 return ::ppapi::thunk::GetPPB_Flash_Clipboard_3_0_Thunk(); | 322 return ::ppapi::thunk::GetPPB_Flash_Clipboard_3_0_Thunk(); |
321 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) | 323 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) |
322 return PPB_Flash_File_FileRef_Impl::GetInterface(); | 324 return PPB_Flash_File_FileRef_Impl::GetInterface(); |
323 if (strcmp(name, PPB_FLASH_FILE_MODULELOCAL_INTERFACE) == 0) | 325 if (strcmp(name, PPB_FLASH_FILE_MODULELOCAL_INTERFACE) == 0) |
324 return PPB_Flash_File_ModuleLocal_Impl::GetInterface(); | 326 return PPB_Flash_File_ModuleLocal_Impl::GetInterface(); |
325 if (strcmp(name, PPB_FLASH_MENU_INTERFACE_0_2) == 0) | 327 if (strcmp(name, PPB_FLASH_MENU_INTERFACE_0_2) == 0) |
326 return ::ppapi::thunk::GetPPB_Flash_Menu_0_2_Thunk(); | 328 return ::ppapi::thunk::GetPPB_Flash_Menu_0_2_Thunk(); |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 int retval = entry_points.initialize_module(pp_module(), &GetInterface); | 606 int retval = entry_points.initialize_module(pp_module(), &GetInterface); |
605 if (retval != 0) { | 607 if (retval != 0) { |
606 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 608 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; |
607 return false; | 609 return false; |
608 } | 610 } |
609 return true; | 611 return true; |
610 } | 612 } |
611 | 613 |
612 } // namespace ppapi | 614 } // namespace ppapi |
613 } // namespace webkit | 615 } // namespace webkit |
OLD | NEW |