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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/trusted/service_runtime/sel_main_chrome.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/public/chrome_main.h
diff --git a/src/public/chrome_main.h b/src/public/chrome_main.h
index 96885b38edbe2b76c70ded780857d9b86da83886..a2b432cc3bef03bc1ebeee58cb7d1bc897fa696e 100644
--- a/src/public/chrome_main.h
+++ b/src/public/chrome_main.h
@@ -162,6 +162,15 @@ struct NaClChromeMainArgs {
size_t info_size);
#endif
+ /*
+ * Callback to run when the initial module load status from a call to
+ * NaClChromeMainStart is known. The callback is run on the same thread
+ * that called NaClChromeMainStart. load_status is zero on success, or a
+ * non-zero error code (from the NaClErrorCode enumeration) on failure.
+ * Optional; may be NULL.
+ */
+ void (*load_status_handler_func)(int load_status);
+
#if NACL_LINUX || NACL_OSX
/*
* The result of sysconf(_SC_NPROCESSORS_ONLN). The Chrome
« 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