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