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

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: review 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
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 (load_status is a value from the
Mark Seaborn 2015/04/18 01:14:14 Can you also say that it's called from the thread
jvoung (off chromium) 2015/04/20 18:49:47 Good idea -- done.
168 * NaClErrorCode enumeration and may indicate success or error).
Mark Seaborn 2015/04/18 01:14:14 Technically NaClErrorCode is not defined in src/pu
jvoung (off chromium) 2015/04/20 18:49:47 Done.
169 */
Mark Seaborn 2015/04/18 01:14:14 Add: "Optional; may be NULL" to follow the style o
jvoung (off chromium) 2015/04/20 18:49:47 Done.
170 void (*load_status_handler_func)(int load_status);
171
165 #if NACL_LINUX || NACL_OSX 172 #if NACL_LINUX || NACL_OSX
166 /* 173 /*
167 * The result of sysconf(_SC_NPROCESSORS_ONLN). The Chrome 174 * The result of sysconf(_SC_NPROCESSORS_ONLN). The Chrome
168 * outer-sandbox prevents the glibc implementation of sysconf from 175 * outer-sandbox prevents the glibc implementation of sysconf from
169 * working -- which just reads /proc/cpuinfo or similar file -- so 176 * working -- which just reads /proc/cpuinfo or similar file -- so
170 * instead, the launcher should fill this in. In principle this is 177 * instead, the launcher should fill this in. In principle this is
171 * optional and may be -1, but this will make 178 * optional and may be -1, but this will make
172 * sysconf(_SC_NPROCESSORS_ONLN) fail and result in some NaCl 179 * sysconf(_SC_NPROCESSORS_ONLN) fail and result in some NaCl
173 * modules failing. 180 * modules failing.
174 * 181 *
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 * exit status. 260 * exit status.
254 * 261 *
255 * This is safer than exit(), which does some teardown that can cause running 262 * This is safer than exit(), which does some teardown that can cause running
256 * threads to crash. 263 * threads to crash.
257 */ 264 */
258 void NaClExit(int code); 265 void NaClExit(int code);
259 266
260 EXTERN_C_END 267 EXTERN_C_END
261 268
262 #endif 269 #endif
OLDNEW
« no previous file with comments | « no previous file | src/trusted/service_runtime/sel_main_chrome.c » ('j') | src/trusted/service_runtime/sel_main_chrome.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698