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

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: reorder events 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..c652a8fc4a78f78ab8e4c10eca65799c5a77dc68 100644
--- a/src/public/chrome_main.h
+++ b/src/public/chrome_main.h
@@ -234,6 +234,13 @@ void NaClChromeMainInit(void);
*/
void NaClSetFatalErrorCallback(void (*func)(const char *data, size_t bytes));
+/*
+ * Sets a function to be called when the initial module load status
+ * from a call to NaClChromeMainStart is known (load_status is a value from
+ * the the NaClErrorCode enumeration and may indicate success or error).
+ */
+void NaClSetLoadStatusCallback(void (*func)(int load_status));
Mark Seaborn 2015/04/17 23:15:54 Can you make this callback a field in NaClChromeMa
jvoung (off chromium) 2015/04/18 00:58:17 Done -- ah, didn't realize why that was global.
+
/* Create a new args struct containing default values. */
struct NaClChromeMainArgs *NaClChromeMainArgsCreate(void);
« 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