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

Unified Diff: src/trusted/service_runtime/sel_main_chrome.c

Issue 9960060: Handle-passing: Allow a handle-passing function to be supplied by Chromium (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Add "broker" prefix to name Created 8 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
Index: src/trusted/service_runtime/sel_main_chrome.c
diff --git a/src/trusted/service_runtime/sel_main_chrome.c b/src/trusted/service_runtime/sel_main_chrome.c
index 7543bffcd13b741d696c9c418c6110b1c0993832..00cedce4f557ed209ea6df94b5d2fa69cbddf9b2 100644
--- a/src/trusted/service_runtime/sel_main_chrome.c
+++ b/src/trusted/service_runtime/sel_main_chrome.c
@@ -44,6 +44,9 @@ struct NaClChromeMainArgs *NaClChromeMainArgsCreate(void) {
args->enable_exception_handling = 0;
args->enable_debug_stub = 0;
args->create_memory_object_func = NULL;
+#if NACL_WINDOWS
+ args->broker_duplicate_handle_func = NULL;
+#endif
args->validation_cache = NULL;
return args;
}
@@ -118,6 +121,11 @@ void NaClChromeMainStart(struct NaClChromeMainArgs *args) {
if (args->create_memory_object_func != NULL)
NaClSetCreateMemoryObjectFunc(args->create_memory_object_func);
+#if NACL_WINDOWS
+ if (args->broker_duplicate_handle_func != NULL)
+ NaClSetBrokerDuplicateHandleFunc(args->broker_duplicate_handle_func);
+#endif
+
/* Inject the validation caching interface, if it exists. */
nap->validation_cache = args->validation_cache;
« src/shared/imc/win/nacl_imc.cc ('K') | « src/trusted/service_runtime/sel_main_chrome.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698