| 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 if (strcmp(name, PPB_AUDIO_INPUT_TRUSTED_DEV_INTERFACE) == 0) | 280 if (strcmp(name, PPB_AUDIO_INPUT_TRUSTED_DEV_INTERFACE) == 0) |
| 281 return ::ppapi::thunk::GetPPB_AudioInputTrusted_Thunk(); | 281 return ::ppapi::thunk::GetPPB_AudioInputTrusted_Thunk(); |
| 282 if (strcmp(name, PPB_AUDIO_TRUSTED_INTERFACE) == 0) | 282 if (strcmp(name, PPB_AUDIO_TRUSTED_INTERFACE) == 0) |
| 283 return ::ppapi::thunk::GetPPB_AudioTrusted_Thunk(); | 283 return ::ppapi::thunk::GetPPB_AudioTrusted_Thunk(); |
| 284 if (strcmp(name, PPB_BUFFER_TRUSTED_INTERFACE) == 0) | 284 if (strcmp(name, PPB_BUFFER_TRUSTED_INTERFACE) == 0) |
| 285 return ::ppapi::thunk::GetPPB_BufferTrusted_Thunk(); | 285 return ::ppapi::thunk::GetPPB_BufferTrusted_Thunk(); |
| 286 if (strcmp(name, PPB_CONTEXT_3D_TRUSTED_DEV_INTERFACE) == 0) | 286 if (strcmp(name, PPB_CONTEXT_3D_TRUSTED_DEV_INTERFACE) == 0) |
| 287 return ::ppapi::thunk::GetPPB_Context3DTrusted_Thunk(); | 287 return ::ppapi::thunk::GetPPB_Context3DTrusted_Thunk(); |
| 288 if (strcmp(name, PPB_CORE_INTERFACE) == 0) | 288 if (strcmp(name, PPB_CORE_INTERFACE) == 0) |
| 289 return &core_interface; | 289 return &core_interface; |
| 290 if (strcmp(name, PPB_FILEIOTRUSTED_INTERFACE) == 0) | |
| 291 return ::ppapi::thunk::GetPPB_FileIOTrusted_Thunk(); | |
| 292 if (strcmp(name, PPB_FILECHOOSER_TRUSTED_INTERFACE) == 0) | 290 if (strcmp(name, PPB_FILECHOOSER_TRUSTED_INTERFACE) == 0) |
| 293 return ::ppapi::thunk::GetPPB_FileChooser_Trusted_Thunk(); | 291 return ::ppapi::thunk::GetPPB_FileChooser_Trusted_Thunk(); |
| 294 if (strcmp(name, PPB_FLASH_INTERFACE) == 0) | 292 if (strcmp(name, PPB_FLASH_INTERFACE) == 0) |
| 295 return PPB_Flash_Impl::GetInterface(); | 293 return PPB_Flash_Impl::GetInterface(); |
| 296 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE) == 0) | 294 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE) == 0) |
| 297 return ::ppapi::thunk::GetPPB_Flash_Clipboard_Thunk(); | 295 return ::ppapi::thunk::GetPPB_Flash_Clipboard_Thunk(); |
| 298 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE_3_LEGACY) == 0) | 296 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE_3_LEGACY) == 0) |
| 299 return ::ppapi::thunk::GetPPB_Flash_Clipboard_Thunk(); | 297 return ::ppapi::thunk::GetPPB_Flash_Clipboard_Thunk(); |
| 300 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) | 298 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) |
| 301 return PPB_Flash_File_FileRef_Impl::GetInterface(); | 299 return PPB_Flash_File_FileRef_Impl::GetInterface(); |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 int retval = entry_points.initialize_module(pp_module(), &GetInterface); | 577 int retval = entry_points.initialize_module(pp_module(), &GetInterface); |
| 580 if (retval != 0) { | 578 if (retval != 0) { |
| 581 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 579 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; |
| 582 return false; | 580 return false; |
| 583 } | 581 } |
| 584 return true; | 582 return true; |
| 585 } | 583 } |
| 586 | 584 |
| 587 } // namespace ppapi | 585 } // namespace ppapi |
| 588 } // namespace webkit | 586 } // namespace webkit |
| OLD | NEW |