| 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/include/portability.h" | 11 #include "native_client/src/include/portability.h" |
| 12 #include "native_client/src/shared/imc/nacl_imc_c.h" | 12 #include "native_client/src/shared/imc/nacl_imc_c.h" |
| 13 #include "native_client/src/trusted/service_runtime/nacl_error_code.h" |
| 13 | 14 |
| 14 EXTERN_C_BEGIN | 15 EXTERN_C_BEGIN |
| 15 | 16 |
| 16 struct NaClValidationCache; | 17 struct NaClValidationCache; |
| 17 | 18 |
| 18 | 19 |
| 19 /* | 20 /* |
| 20 * Descriptor number for initial_ipc_desc. This is chosen so as not | 21 * Descriptor number for initial_ipc_desc. This is chosen so as not |
| 21 * to conflict with NACL_SERVICE_PORT_DESCRIPTOR, | 22 * to conflict with NACL_SERVICE_PORT_DESCRIPTOR, |
| 22 * NACL_SERVICE_ADDRESS_DESCRIPTOR and export_addr_to inside | 23 * NACL_SERVICE_ADDRESS_DESCRIPTOR and export_addr_to inside |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 * sandbox. This is optional and may be 0 if no address space has | 145 * sandbox. This is optional and may be 0 if no address space has |
| 145 * been reserved, though some sandboxes (such as ARM) might fail in | 146 * been reserved, though some sandboxes (such as ARM) might fail in |
| 146 * that case. | 147 * that case. |
| 147 */ | 148 */ |
| 148 size_t prereserved_sandbox_size; | 149 size_t prereserved_sandbox_size; |
| 149 #endif | 150 #endif |
| 150 }; | 151 }; |
| 151 | 152 |
| 152 /* Create a new args struct containing default values. */ | 153 /* Create a new args struct containing default values. */ |
| 153 struct NaClChromeMainArgs *NaClChromeMainArgsCreate(void); | 154 struct NaClChromeMainArgs *NaClChromeMainArgsCreate(void); |
| 155 struct NaClApp *NaClChromeMainCreateApp(struct NaClChromeMainArgs *args); |
| 156 |
| 157 /* Load the NaCl module referred to by nexe_desc. */ |
| 158 NaClErrorCode NaClChromeMainLoadModule(struct NaClApp *nap, |
| 159 struct NaClDesc *nexe_desc); |
| 160 |
| 161 /* Load the IRT and start the NaCl module. */ |
| 162 void NaClChromeMainStartModule(struct NaClApp *nap, int irt_fd); |
| 154 | 163 |
| 155 /* Launch NaCl. */ | 164 /* Launch NaCl. */ |
| 156 void NaClChromeMainStart(struct NaClChromeMainArgs *args); | 165 void NaClChromeMainStart(struct NaClChromeMainArgs *args); |
| 157 | 166 |
| 158 | 167 |
| 159 EXTERN_C_END | 168 EXTERN_C_END |
| 160 | 169 |
| 161 #endif | 170 #endif |
| OLD | NEW |