OLD | NEW |
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_TRUSTED_SERVICE_RUNTIME_SEL_MAIN_CHROME_H_ | 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_SEL_MAIN_CHROME_H_ |
8 #define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_SEL_MAIN_CHROME_H_ 1 | 8 #define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_SEL_MAIN_CHROME_H_ 1 |
9 | 9 |
10 #include "native_client/src/include/nacl_base.h" | 10 #include "native_client/src/include/nacl_base.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 int enable_debug_stub; | 36 int enable_debug_stub; |
37 | 37 |
38 /* | 38 /* |
39 * Callback to use for creating shared memory objects. Optional; | 39 * Callback to use for creating shared memory objects. Optional; |
40 * may be NULL. | 40 * may be NULL. |
41 */ | 41 */ |
42 NaClCreateMemoryObjectFunc create_memory_object_func; | 42 NaClCreateMemoryObjectFunc create_memory_object_func; |
43 | 43 |
44 /* Cache for NaCl validation judgements. Optional; may be NULL. */ | 44 /* Cache for NaCl validation judgements. Optional; may be NULL. */ |
45 struct NaClValidationCache *validation_cache; | 45 struct NaClValidationCache *validation_cache; |
| 46 |
| 47 #if NACL_WINDOWS |
| 48 /* |
| 49 * Callback to use instead of DuplicateHandle() for copying a |
| 50 * Windows handle to another process. Optional; may be NULL. |
| 51 */ |
| 52 NaClBrokerDuplicateHandleFunc broker_duplicate_handle_func; |
| 53 #endif |
46 }; | 54 }; |
47 | 55 |
48 /* Create a new args struct containing default values. */ | 56 /* Create a new args struct containing default values. */ |
49 struct NaClChromeMainArgs *NaClChromeMainArgsCreate(void); | 57 struct NaClChromeMainArgs *NaClChromeMainArgsCreate(void); |
50 | 58 |
51 /* Launch NaCl. */ | 59 /* Launch NaCl. */ |
52 void NaClChromeMainStart(struct NaClChromeMainArgs *args); | 60 void NaClChromeMainStart(struct NaClChromeMainArgs *args); |
53 | 61 |
54 | 62 |
55 EXTERN_C_END | 63 EXTERN_C_END |
56 | 64 |
57 #endif | 65 #endif |
OLD | NEW |