| 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 16 matching lines...) Expand all Loading... |
| 27 struct NaClChromeMainArgs { | 27 struct NaClChromeMainArgs { |
| 28 /* | 28 /* |
| 29 * Handle for bootstrapping a NaCl IMC connection to the trusted | 29 * Handle for bootstrapping a NaCl IMC connection to the trusted |
| 30 * PPAPI plugin. Required. | 30 * PPAPI plugin. Required. |
| 31 */ | 31 */ |
| 32 NaClHandle imc_bootstrap_handle; | 32 NaClHandle imc_bootstrap_handle; |
| 33 | 33 |
| 34 /* | 34 /* |
| 35 * File descriptor for the NaCl integrated runtime (IRT) library. | 35 * File descriptor for the NaCl integrated runtime (IRT) library. |
| 36 * Note that this is a file descriptor even on Windows (where file | 36 * Note that this is a file descriptor even on Windows (where file |
| 37 * descriptors are emulated by the C runtime library). Required. | 37 * descriptors are emulated by the C runtime library). |
| 38 * Optional; may be -1. Optional when loading nexes that don't follow |
| 39 * NaCl's stable ABI, such as the PNaCl translator. |
| 38 */ | 40 */ |
| 39 int irt_fd; | 41 int irt_fd; |
| 40 | 42 |
| 41 /* | 43 /* |
| 42 * Descriptor to provide to untrusted code as descriptor number | 44 * Descriptor to provide to untrusted code as descriptor number |
| 43 * NACL_CHROME_INITIAL_IPC_DESC. For use by the Chrome-IPC-based | 45 * NACL_CHROME_INITIAL_IPC_DESC. For use by the Chrome-IPC-based |
| 44 * PPAPI proxy. Optional; may be NULL. | 46 * PPAPI proxy. Optional; may be NULL. |
| 45 */ | 47 */ |
| 46 struct NaClDesc *initial_ipc_desc; | 48 struct NaClDesc *initial_ipc_desc; |
| 47 | 49 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 /* Create a new args struct containing default values. */ | 111 /* Create a new args struct containing default values. */ |
| 110 struct NaClChromeMainArgs *NaClChromeMainArgsCreate(void); | 112 struct NaClChromeMainArgs *NaClChromeMainArgsCreate(void); |
| 111 | 113 |
| 112 /* Launch NaCl. */ | 114 /* Launch NaCl. */ |
| 113 void NaClChromeMainStart(struct NaClChromeMainArgs *args); | 115 void NaClChromeMainStart(struct NaClChromeMainArgs *args); |
| 114 | 116 |
| 115 | 117 |
| 116 EXTERN_C_END | 118 EXTERN_C_END |
| 117 | 119 |
| 118 #endif | 120 #endif |
| OLD | NEW |