OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client 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_SERVICE_RUNTIME_SEL_MAIN_CHROME_H_ | 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_SEL_MAIN_CHROME_H_ |
8 #define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_SEL_MAIN_CHROME_H_ 1 | 8 #define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_SEL_MAIN_CHROME_H_ 1 |
9 | 9 |
10 #include "native_client/src/include/nacl_base.h" | 10 #include "native_client/src/include/nacl_base.h" |
11 #include "native_client/src/shared/imc/nacl_imc_c.h" | 11 #include "native_client/src/shared/imc/nacl_imc_c.h" |
| 12 #include "native_client/src/trusted/validator/validation_cache.h" |
12 | 13 |
13 EXTERN_C_BEGIN | 14 EXTERN_C_BEGIN |
14 | 15 |
15 /* | 16 /* |
16 * Register the integrated runtime (IRT) library file for use by | 17 * Register the integrated runtime (IRT) library file for use by |
17 * NaClMainForChromium(). This takes a file descriptor, even on | 18 * NaClMainForChromium(). This takes a file descriptor, even on |
18 * Windows (where file descriptors are emulated by the C runtime | 19 * Windows (where file descriptors are emulated by the C runtime |
19 * library). | 20 * library). |
20 */ | 21 */ |
21 void NaClSetIrtFileDesc(int fd); | 22 void NaClSetIrtFileDesc(int fd); |
22 | 23 |
| 24 void NaClSetValidationCache(NaClValidationCache *cache); |
| 25 |
23 void NaClMainForChromium(int handle_count, const NaClHandle *handles, | 26 void NaClMainForChromium(int handle_count, const NaClHandle *handles, |
24 int debug); | 27 int debug); |
25 | 28 |
26 EXTERN_C_END | 29 EXTERN_C_END |
27 | 30 |
28 #endif | 31 #endif |
OLD | NEW |