Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: src/trusted/service_runtime/sel_main_chrome.h

Issue 141413007: NaCl: Expose NaClApp to the embedding layer. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@embedding_api
Patch Set: Expose LoadModule status for UMA tracking. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/trusted/service_runtime/sel_main_chrome.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | src/trusted/service_runtime/sel_main_chrome.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698