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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 // Please keep alphabetized by interface macro name with "special" stuff at | 277 // Please keep alphabetized by interface macro name with "special" stuff at |
278 // the bottom. | 278 // the bottom. |
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_FILEIOTRUSTED_INTERFACE) == 0) | |
288 return ::ppapi::thunk::GetPPB_FileIOTrusted_Thunk(); | |
289 if (strcmp(name, PPB_FILECHOOSER_TRUSTED_INTERFACE) == 0) | 287 if (strcmp(name, PPB_FILECHOOSER_TRUSTED_INTERFACE) == 0) |
290 return ::ppapi::thunk::GetPPB_FileChooser_Trusted_Thunk(); | 288 return ::ppapi::thunk::GetPPB_FileChooser_Trusted_Thunk(); |
291 if (strcmp(name, PPB_FLASH_INTERFACE) == 0) | 289 if (strcmp(name, PPB_FLASH_INTERFACE) == 0) |
292 return PPB_Flash_Impl::GetInterface(); | 290 return PPB_Flash_Impl::GetInterface(); |
293 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE) == 0) | 291 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE) == 0) |
294 return ::ppapi::thunk::GetPPB_Flash_Clipboard_Thunk(); | 292 return ::ppapi::thunk::GetPPB_Flash_Clipboard_Thunk(); |
295 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE_3_LEGACY) == 0) | 293 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE_3_LEGACY) == 0) |
296 return ::ppapi::thunk::GetPPB_Flash_Clipboard_Thunk(); | 294 return ::ppapi::thunk::GetPPB_Flash_Clipboard_Thunk(); |
297 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) | 295 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) |
298 return PPB_Flash_File_FileRef_Impl::GetInterface(); | 296 return PPB_Flash_File_FileRef_Impl::GetInterface(); |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 int retval = entry_points.initialize_module(pp_module(), &GetInterface); | 574 int retval = entry_points.initialize_module(pp_module(), &GetInterface); |
577 if (retval != 0) { | 575 if (retval != 0) { |
578 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; | 576 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; |
579 return false; | 577 return false; |
580 } | 578 } |
581 return true; | 579 return true; |
582 } | 580 } |
583 | 581 |
584 } // namespace ppapi | 582 } // namespace ppapi |
585 } // namespace webkit | 583 } // namespace webkit |
OLD | NEW |