OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 | 5 |
6 /* This file contains NaCl private interfaces. This interface is not versioned | 6 /* This file contains NaCl private interfaces. This interface is not versioned |
7 * and is for internal Chrome use. It may change without notice. */ | 7 * and is for internal Chrome use. It may change without notice. */ |
8 | 8 |
9 #inline c | 9 #inline c |
10 #include "ppapi/c/private/pp_file_handle.h" | 10 #include "ppapi/c/private/pp_file_handle.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 /** NaCl-specific errors that should be reported to the user */ | 28 /** NaCl-specific errors that should be reported to the user */ |
29 enum PP_NaClError { | 29 enum PP_NaClError { |
30 /** | 30 /** |
31 * The manifest program element does not contain a program usable on the | 31 * The manifest program element does not contain a program usable on the |
32 * user's architecture | 32 * user's architecture |
33 */ | 33 */ |
34 PP_NACL_MANIFEST_MISSING_ARCH = 0 | 34 PP_NACL_MANIFEST_MISSING_ARCH = 0 |
35 }; | 35 }; |
36 | 36 |
37 struct PP_NaClExecutableMetadata { | |
38 /** File path of NaCl executable. This is created by the OpenNaClExecutableFd | |
39 * function. It is the caller's responsiblity to release it. */ | |
40 PP_Var file_path; | |
41 }; | |
42 | |
43 /* PPB_NaCl_Private */ | 37 /* PPB_NaCl_Private */ |
44 interface PPB_NaCl_Private { | 38 interface PPB_NaCl_Private { |
45 /* Launches NaCl's sel_ldr process. Returns PP_NACL_OK on success and | 39 /* Launches NaCl's sel_ldr process. Returns PP_NACL_OK on success and |
46 * writes a NaClHandle to imc_handle. Returns PP_NACL_FAILED on failure. | 40 * writes a NaClHandle to imc_handle. Returns PP_NACL_FAILED on failure. |
47 * The |enable_ppapi_dev| parameter controls whether GetInterface | 41 * The |enable_ppapi_dev| parameter controls whether GetInterface |
48 * returns 'Dev' interfaces to the NaCl plugin. The |uses_ppapi| flag | 42 * returns 'Dev' interfaces to the NaCl plugin. The |uses_ppapi| flag |
49 * indicates that the nexe run by sel_ldr will use the PPAPI APIs. | 43 * indicates that the nexe run by sel_ldr will use the PPAPI APIs. |
50 * This implies that LaunchSelLdr is run from the main thread. If a nexe | 44 * This implies that LaunchSelLdr is run from the main thread. If a nexe |
51 * does not need PPAPI, then it can run off the main thread. | 45 * does not need PPAPI, then it can run off the main thread. |
52 * The |uses_irt| flag indicates whether the IRT should be loaded in this | 46 * The |uses_irt| flag indicates whether the IRT should be loaded in this |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 /* Display a UI message to the user. */ | 116 /* Display a UI message to the user. */ |
123 PP_NaClResult ReportNaClError([in] PP_Instance instance, | 117 PP_NaClResult ReportNaClError([in] PP_Instance instance, |
124 [in] PP_NaClError message_id); | 118 [in] PP_NaClError message_id); |
125 | 119 |
126 /* Opens a NaCl executable file in the application's extension directory | 120 /* Opens a NaCl executable file in the application's extension directory |
127 * corresponding to the file URL and returns a file descriptor, or an invalid | 121 * corresponding to the file URL and returns a file descriptor, or an invalid |
128 * handle on failure. |metadata| is left unchanged on failure. | 122 * handle on failure. |metadata| is left unchanged on failure. |
129 */ | 123 */ |
130 PP_FileHandle OpenNaClExecutable([in] PP_Instance instance, | 124 PP_FileHandle OpenNaClExecutable([in] PP_Instance instance, |
131 [in] str_t file_url, | 125 [in] str_t file_url, |
132 [out] PP_NaClExecutableMetadata metadata); | 126 [out] uint64_t file_token_lo, |
| 127 [out] uint64_t file_token_hi); |
133 }; | 128 }; |
OLD | NEW |