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