| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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 "components/nacl/renderer/plugin/ppapi_entrypoints.h" | 5 #include "components/nacl/renderer/plugin/ppapi_entrypoints.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 7 #include "components/nacl/renderer/plugin/module_ppapi.h" | 9 #include "components/nacl/renderer/plugin/module_ppapi.h" |
| 8 #include "ppapi/c/pp_errors.h" | 10 #include "ppapi/c/pp_errors.h" |
| 9 #include "ppapi/c/pp_module.h" | 11 #include "ppapi/c/pp_module.h" |
| 10 #include "ppapi/c/ppb.h" | 12 #include "ppapi/c/ppb.h" |
| 11 #include "ppapi/cpp/module.h" | 13 #include "ppapi/cpp/module.h" |
| 12 #include "ppapi/cpp/private/internal_module.h" | 14 #include "ppapi/cpp/private/internal_module.h" |
| 13 | 15 |
| 14 namespace nacl_plugin { | 16 namespace nacl_plugin { |
| 15 | 17 |
| 16 int32_t PPP_InitializeModule(PP_Module module_id, | 18 int32_t PPP_InitializeModule(PP_Module module_id, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 30 pp::InternalSetModuleSingleton(NULL); | 32 pp::InternalSetModuleSingleton(NULL); |
| 31 } | 33 } |
| 32 | 34 |
| 33 const void* PPP_GetInterface(const char* interface_name) { | 35 const void* PPP_GetInterface(const char* interface_name) { |
| 34 if (!pp::Module::Get()) | 36 if (!pp::Module::Get()) |
| 35 return NULL; | 37 return NULL; |
| 36 return pp::Module::Get()->GetPluginInterface(interface_name); | 38 return pp::Module::Get()->GetPluginInterface(interface_name); |
| 37 } | 39 } |
| 38 | 40 |
| 39 } // namespace nacl_plugin | 41 } // namespace nacl_plugin |
| OLD | NEW |