OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NACL_ENTRY_POINTS_H_ | 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NACL_ENTRY_POINTS_H_ |
8 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NACL_ENTRY_POINTS_H_ | 8 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NACL_ENTRY_POINTS_H_ |
9 | 9 |
10 #include <stddef.h> | 10 #include <stddef.h> |
11 | 11 |
12 #include <map> | 12 #include <map> |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "native_client/src/shared/imc/nacl_imc.h" | 15 #include "native_client/src/shared/imc/nacl_imc.h" |
| 16 #include "ppapi/c/pp_instance.h" |
16 | 17 |
17 | 18 |
18 typedef bool (*LaunchNaClProcessFunc)(const char* url, | 19 typedef bool (*LaunchNaClProcessFunc)(PP_Instance instance, |
| 20 const char* url, |
19 int socket_count, | 21 int socket_count, |
20 nacl::Handle* result_sockets); | 22 nacl::Handle* result_sockets); |
21 | 23 |
| 24 typedef bool (*StartPpapiProxyFunc)(PP_Instance instance); |
| 25 |
22 typedef int (*GetURandomFDFunc)(void); | 26 typedef int (*GetURandomFDFunc)(void); |
23 | 27 |
24 | 28 |
25 extern LaunchNaClProcessFunc launch_nacl_process; | 29 extern LaunchNaClProcessFunc launch_nacl_process; |
| 30 extern StartPpapiProxyFunc start_ppapi_proxy; |
26 extern GetURandomFDFunc get_urandom_fd; | 31 extern GetURandomFDFunc get_urandom_fd; |
27 | 32 |
28 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NACL_ENTRY_POINTS_H_ | 33 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NACL_ENTRY_POINTS_H_ |
OLD | NEW |