OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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 "base/logging.h" | |
6 | |
Mark Seaborn
2014/02/19 17:00:30
Nit: remove empty line (base/ should be in same #i
hidehiko
2014/02/20 18:50:01
Oops. Done.
| |
7 #include "components/nacl/loader/nonsfi/irt_interfaces.h" | |
8 #include "ppapi/c/ppp.h" | |
9 #include "ppapi/nacl_irt/irt_ppapi.h" | |
10 #include "ppapi/proxy/plugin_main_irt.h" | |
11 | |
12 namespace nacl { | |
13 namespace nonsfi { | |
14 namespace { | |
15 | |
16 struct PP_StartFunctions g_pp_functions; | |
17 | |
18 int IrtPpapiStart(const struct PP_StartFunctions* funcs) { | |
19 g_pp_functions = *funcs; | |
20 return PpapiPluginMain(); | |
21 } | |
22 | |
23 } // namespace | |
24 | |
25 const struct nacl_irt_ppapihook kIrtPpapiHook = { | |
26 IrtPpapiStart, | |
27 PpapiPluginRegisterThreadCreator, | |
28 }; | |
29 | |
30 } // namespace nonsfi | |
31 } // namespace nacl | |
32 | |
33 int32_t PPP_InitializeModule(PP_Module module_id, | |
34 PPB_GetInterface get_browser_interface) { | |
35 return nacl::nonsfi::g_pp_functions.PPP_InitializeModule( | |
36 module_id, get_browser_interface); | |
37 } | |
38 | |
39 void PPP_ShutdownModule(void) { | |
40 nacl::nonsfi::g_pp_functions.PPP_ShutdownModule(); | |
41 } | |
42 | |
43 const void *PPP_GetInterface(const char *interface_name) { | |
44 return nacl::nonsfi::g_pp_functions.PPP_GetInterface(interface_name); | |
45 } | |
OLD | NEW |