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" |
(...skipping 133 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 | 144 * 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 | 145 * been reserved, though some sandboxes (such as ARM) might fail in |
146 * that case. | 146 * that case. |
147 */ | 147 */ |
148 size_t prereserved_sandbox_size; | 148 size_t prereserved_sandbox_size; |
149 #endif | 149 #endif |
150 }; | 150 }; |
151 | 151 |
152 /* Create a new args struct containing default values. */ | 152 /* Create a new args struct containing default values. */ |
153 struct NaClChromeMainArgs *NaClChromeMainArgsCreate(void); | 153 struct NaClChromeMainArgs *NaClChromeMainArgsCreate(void); |
| 154 struct NaClApp *NaClChromeMainCreateApp(struct NaClChromeMainArgs *args); |
| 155 /* Load and run the initial nexe (including loading the IRT as necessary). */ |
| 156 void NaClChromeMainLoadAndRunNexe(struct NaClApp *nap, int irt_fd); |
154 | 157 |
155 /* Launch NaCl. */ | 158 /* Launch NaCl. */ |
156 void NaClChromeMainStart(struct NaClChromeMainArgs *args); | 159 void NaClChromeMainStart(struct NaClChromeMainArgs *args); |
157 | 160 |
158 | 161 |
159 EXTERN_C_END | 162 EXTERN_C_END |
160 | 163 |
161 #endif | 164 #endif |
OLD | NEW |