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/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 if (strcmp(name, PPB_AUDIO_INPUT_TRUSTED_DEV_INTERFACE) == 0) | 279 if (strcmp(name, PPB_AUDIO_INPUT_TRUSTED_DEV_INTERFACE) == 0) |
280 return ::ppapi::thunk::GetPPB_AudioInputTrusted_Thunk(); | 280 return ::ppapi::thunk::GetPPB_AudioInputTrusted_Thunk(); |
281 if (strcmp(name, PPB_AUDIO_TRUSTED_INTERFACE) == 0) | 281 if (strcmp(name, PPB_AUDIO_TRUSTED_INTERFACE) == 0) |
282 return ::ppapi::thunk::GetPPB_AudioTrusted_Thunk(); | 282 return ::ppapi::thunk::GetPPB_AudioTrusted_Thunk(); |
283 if (strcmp(name, PPB_BUFFER_TRUSTED_INTERFACE) == 0) | 283 if (strcmp(name, PPB_BUFFER_TRUSTED_INTERFACE) == 0) |
284 return ::ppapi::thunk::GetPPB_BufferTrusted_Thunk(); | 284 return ::ppapi::thunk::GetPPB_BufferTrusted_Thunk(); |
285 if (strcmp(name, PPB_CORE_INTERFACE) == 0) | 285 if (strcmp(name, PPB_CORE_INTERFACE) == 0) |
286 return &core_interface; | 286 return &core_interface; |
287 if (strcmp(name, PPB_FILECHOOSER_TRUSTED_INTERFACE) == 0) | 287 if (strcmp(name, PPB_FILECHOOSER_TRUSTED_INTERFACE) == 0) |
288 return ::ppapi::thunk::GetPPB_FileChooser_Trusted_Thunk(); | 288 return ::ppapi::thunk::GetPPB_FileChooser_Trusted_Thunk(); |
289 if (strcmp(name, PPB_FLASH_INTERFACE) == 0) | 289 if (strcmp(name, PPB_FLASH_INTERFACE_11_0) == 0) |
290 return PPB_Flash_Impl::GetInterface(); | 290 return PPB_Flash_Impl::GetInterface11(); |
| 291 if (strcmp(name, PPB_FLASH_INTERFACE_12_0) == 0) |
| 292 return PPB_Flash_Impl::GetInterface12(); |
291 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE) == 0) | 293 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE) == 0) |
292 return ::ppapi::thunk::GetPPB_Flash_Clipboard_Thunk(); | 294 return ::ppapi::thunk::GetPPB_Flash_Clipboard_Thunk(); |
293 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE_3_LEGACY) == 0) | 295 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE_3_LEGACY) == 0) |
294 return ::ppapi::thunk::GetPPB_Flash_Clipboard_Thunk(); | 296 return ::ppapi::thunk::GetPPB_Flash_Clipboard_Thunk(); |
295 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) | 297 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) |
296 return PPB_Flash_File_FileRef_Impl::GetInterface(); | 298 return PPB_Flash_File_FileRef_Impl::GetInterface(); |
297 if (strcmp(name, PPB_FLASH_FILE_MODULELOCAL_INTERFACE) == 0) | 299 if (strcmp(name, PPB_FLASH_FILE_MODULELOCAL_INTERFACE) == 0) |
298 return PPB_Flash_File_ModuleLocal_Impl::GetInterface(); | 300 return PPB_Flash_File_ModuleLocal_Impl::GetInterface(); |
299 if (strcmp(name, PPB_FLASH_MENU_INTERFACE) == 0) | 301 if (strcmp(name, PPB_FLASH_MENU_INTERFACE) == 0) |
300 return ::ppapi::thunk::GetPPB_Flash_Menu_Thunk(); | 302 return ::ppapi::thunk::GetPPB_Flash_Menu_Thunk(); |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 int retval = entry_points.initialize_module(pp_module(), &GetInterface); | 576 int retval = entry_points.initialize_module(pp_module(), &GetInterface); |
575 if (retval != 0) { | 577 if (retval != 0) { |
576 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 578 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; |
577 return false; | 579 return false; |
578 } | 580 } |
579 return true; | 581 return true; |
580 } | 582 } |
581 | 583 |
582 } // namespace ppapi | 584 } // namespace ppapi |
583 } // namespace webkit | 585 } // namespace webkit |
OLD | NEW |