| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/renderer/pepper/chrome_ppapi_interfaces.h" |
| 6 |
| 7 #include "chrome/renderer/pepper/ppb_flash_print_impl.h" |
| 8 #include "chrome/renderer/pepper/ppb_nacl_private_impl.h" |
| 9 #include "chrome/renderer/pepper/ppb_pdf_impl.h" |
| 10 #include "ppapi/c/private/ppb_flash_print.h" |
| 11 #include "ppapi/c/private/ppb_nacl_private.h" |
| 12 #include "ppapi/c/private/ppb_pdf.h" |
| 13 #include "webkit/plugins/ppapi/ppapi_interface_factory.h" |
| 14 |
| 15 namespace chrome { |
| 16 |
| 17 const void* ChromePPAPIInterfaceFactory(const std::string& interface_name) { |
| 18 #if !defined(DISABLE_NACL) |
| 19 if (interface_name == PPB_NACL_PRIVATE_INTERFACE) |
| 20 return PPB_NaCl_Private_Impl::GetInterface(); |
| 21 #endif // DISABLE_NACL |
| 22 if (interface_name == PPB_PDF_INTERFACE) |
| 23 return PPB_PDF_Impl::GetInterface(); |
| 24 if (interface_name == PPB_FLASH_PRINT_INTERFACE) |
| 25 return PPB_Flash_Print_Impl::GetInterface(); |
| 26 return NULL; |
| 27 } |
| 28 |
| 29 } // namespace chrome |
| OLD | NEW |