| 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/chrome_ppapi_interfaces.h" | 5 #include "chrome/renderer/chrome_ppapi_interfaces.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/rand_util_c.h" | 10 #include "base/rand_util_c.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 }; | 95 }; |
| 96 #endif // DISABLE_NACL | 96 #endif // DISABLE_NACL |
| 97 | 97 |
| 98 const void* ChromePPAPIInterfaceFactory(const std::string& interface_name) { | 98 const void* ChromePPAPIInterfaceFactory(const std::string& interface_name) { |
| 99 #if !defined(DISABLE_NACL) | 99 #if !defined(DISABLE_NACL) |
| 100 if (interface_name == PPB_NACL_PRIVATE_INTERFACE) | 100 if (interface_name == PPB_NACL_PRIVATE_INTERFACE) |
| 101 return chrome::PPB_NaCl_Impl::GetInterface(); | 101 return chrome::PPB_NaCl_Impl::GetInterface(); |
| 102 #endif // DISABLE_NACL | 102 #endif // DISABLE_NACL |
| 103 if (interface_name == PPB_PDF_INTERFACE) | 103 if (interface_name == PPB_PDF_INTERFACE) |
| 104 return chrome::PPB_PDF_Impl::GetInterface(); | 104 return chrome::PPB_PDF_Impl::GetInterface(); |
| 105 if (interface_name PPB_TALK_PRIVATE_1_0_INTERFACE) |
| 106 return chrome::PPB_Talk_Private_Impl::GetInterface(); |
| 105 return NULL; | 107 return NULL; |
| 106 } | 108 } |
| 107 | 109 |
| 108 } // namespace chrome | 110 } // namespace chrome |
| OLD | NEW |