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

Side by Side Diff: src/public/chrome_main.h

Issue 1089323006: Add a load_status callback hook that is invoked at the end of chrome LoadApp. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: udpate comment Created 5 years, 8 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_PUBLIC_CHROME_MAIN_H_ 7 #ifndef NATIVE_CLIENT_SRC_PUBLIC_CHROME_MAIN_H_
8 #define NATIVE_CLIENT_SRC_PUBLIC_CHROME_MAIN_H_ 1 8 #define NATIVE_CLIENT_SRC_PUBLIC_CHROME_MAIN_H_ 1
9 9
10 #include "native_client/src/include/build_config.h" 10 #include "native_client/src/include/build_config.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 /* 155 /*
156 * Callback to use for requesting that a debug exception handler be 156 * Callback to use for requesting that a debug exception handler be
157 * attached to this process for handling hardware exceptions via the 157 * attached to this process for handling hardware exceptions via the
158 * Windows debug API. The data in info/info_size must be passed to 158 * Windows debug API. The data in info/info_size must be passed to
159 * NaClDebugExceptionHandlerRun(). Optional; may be NULL. 159 * NaClDebugExceptionHandlerRun(). Optional; may be NULL.
160 */ 160 */
161 int (*attach_debug_exception_handler_func)(const void *info, 161 int (*attach_debug_exception_handler_func)(const void *info,
162 size_t info_size); 162 size_t info_size);
163 #endif 163 #endif
164 164
165 /*
166 * Callback to run when the initial module load status from a call to
167 * NaClChromeMainStart is known. The callback is run on the same thread
168 * that called NaClChromeMainStart. load_status is zero on success, or a
169 * non-zero error code (from the NaClErrorCode enumeration) on failure.
170 * Optional; may be NULL.
171 */
172 void (*load_status_handler_func)(int load_status);
173
165 #if NACL_LINUX || NACL_OSX 174 #if NACL_LINUX || NACL_OSX
166 /* 175 /*
167 * The result of sysconf(_SC_NPROCESSORS_ONLN). The Chrome 176 * The result of sysconf(_SC_NPROCESSORS_ONLN). The Chrome
168 * outer-sandbox prevents the glibc implementation of sysconf from 177 * outer-sandbox prevents the glibc implementation of sysconf from
169 * working -- which just reads /proc/cpuinfo or similar file -- so 178 * working -- which just reads /proc/cpuinfo or similar file -- so
170 * instead, the launcher should fill this in. In principle this is 179 * instead, the launcher should fill this in. In principle this is
171 * optional and may be -1, but this will make 180 * optional and may be -1, but this will make
172 * sysconf(_SC_NPROCESSORS_ONLN) fail and result in some NaCl 181 * sysconf(_SC_NPROCESSORS_ONLN) fail and result in some NaCl
173 * modules failing. 182 * modules failing.
174 * 183 *
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 * exit status. 262 * exit status.
254 * 263 *
255 * This is safer than exit(), which does some teardown that can cause running 264 * This is safer than exit(), which does some teardown that can cause running
256 * threads to crash. 265 * threads to crash.
257 */ 266 */
258 void NaClExit(int code); 267 void NaClExit(int code);
259 268
260 EXTERN_C_END 269 EXTERN_C_END
261 270
262 #endif 271 #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