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 label Chrome { | 9 label Chrome { |
10 M25 = 1.0 | 10 M25 = 1.0 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 161 |
162 /* See NaClFileToken comment in nacl_file_info.h */ | 162 /* See NaClFileToken comment in nacl_file_info.h */ |
163 uint64_t token_lo; | 163 uint64_t token_lo; |
164 uint64_t token_hi; | 164 uint64_t token_hi; |
165 }; | 165 }; |
166 | 166 |
167 /* PPB_NaCl_Private */ | 167 /* PPB_NaCl_Private */ |
168 interface PPB_NaCl_Private { | 168 interface PPB_NaCl_Private { |
169 /* Launches NaCl's sel_ldr process. Returns PP_EXTERNAL_PLUGIN_OK on success | 169 /* Launches NaCl's sel_ldr process. Returns PP_EXTERNAL_PLUGIN_OK on success |
170 * and writes a NaClHandle to imc_handle. Returns PP_EXTERNAL_PLUGIN_FAILED on | 170 * and writes a NaClHandle to imc_handle. Returns PP_EXTERNAL_PLUGIN_FAILED on |
171 * failure. The |enable_ppapi_dev| parameter controls whether GetInterface | 171 * failure. |
172 * returns 'Dev' interfaces to the NaCl plugin. | |
173 * The |nexe_file_info| is currently used only in non-SFI mode. It is the | 172 * The |nexe_file_info| is currently used only in non-SFI mode. It is the |
174 * file handle for the main nexe file, which should be initially loaded. | 173 * file handle for the main nexe file, which should be initially loaded. |
175 * LaunchSelLdr takes the ownership of the file handle. | 174 * LaunchSelLdr takes the ownership of the file handle. |
176 * The |uses_nonsfi_mode| flag indicates whether or not nonsfi-mode should | 175 * The |uses_nonsfi_mode| flag indicates whether or not nonsfi-mode should |
177 * be used with the binary pointed by the url. | 176 * be used with the binary pointed by the url. |
178 */ | 177 */ |
179 void LaunchSelLdr([in] PP_Instance instance, | 178 void LaunchSelLdr([in] PP_Instance instance, |
180 [in] PP_Bool main_service_runtime, | 179 [in] PP_Bool main_service_runtime, |
181 [in] str_t alleged_url, | 180 [in] str_t alleged_url, |
182 [in] PP_NaClFileInfo nexe_file_info, | 181 [in] PP_NaClFileInfo nexe_file_info, |
183 [in] PP_Bool uses_nonsfi_mode, | 182 [in] PP_Bool uses_nonsfi_mode, |
184 [in] PP_Bool enable_ppapi_dev, | |
185 [in] PP_NaClAppProcessType process_type, | 183 [in] PP_NaClAppProcessType process_type, |
186 [out] mem_t imc_handle, | 184 [out] mem_t imc_handle, |
187 [in] PP_CompletionCallback callback); | 185 [in] PP_CompletionCallback callback); |
188 | 186 |
189 /* On POSIX systems, this function returns the file descriptor of | 187 /* On POSIX systems, this function returns the file descriptor of |
190 * /dev/urandom. On non-POSIX systems, this function returns 0. | 188 * /dev/urandom. On non-POSIX systems, this function returns 0. |
191 */ | 189 */ |
192 int32_t UrandomFD(); | 190 int32_t UrandomFD(); |
193 | 191 |
194 /* This is Windows-specific. This is a replacement for DuplicateHandle() for | 192 /* This is Windows-specific. This is a replacement for DuplicateHandle() for |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 | 272 |
275 PP_Var GetManifestBaseURL([in] PP_Instance instance); | 273 PP_Var GetManifestBaseURL([in] PP_Instance instance); |
276 | 274 |
277 /* Processes the NaCl manifest once it's been retrieved. | 275 /* Processes the NaCl manifest once it's been retrieved. |
278 * TODO(teravest): Move the rest of the supporting logic out of the trusted | 276 * TODO(teravest): Move the rest of the supporting logic out of the trusted |
279 * plugin. | 277 * plugin. |
280 */ | 278 */ |
281 void ProcessNaClManifest([in] PP_Instance instance, | 279 void ProcessNaClManifest([in] PP_Instance instance, |
282 [in] str_t program_url); | 280 [in] str_t program_url); |
283 | 281 |
284 PP_Bool DevInterfacesEnabled([in] PP_Instance instance); | |
285 | |
286 PP_Bool GetManifestProgramURL([in] PP_Instance instance, | 282 PP_Bool GetManifestProgramURL([in] PP_Instance instance, |
287 [out] PP_Var full_url, | 283 [out] PP_Var full_url, |
288 [out] PP_PNaClOptions pnacl_options, | 284 [out] PP_PNaClOptions pnacl_options, |
289 [out] PP_Bool uses_nonsfi_mode); | 285 [out] PP_Bool uses_nonsfi_mode); |
290 | 286 |
291 /* Returns the filenames for the llc and ld tools. */ | 287 /* Returns the filenames for the llc and ld tools. */ |
292 PP_Bool GetPnaclResourceInfo([in] PP_Instance instance, | 288 PP_Bool GetPnaclResourceInfo([in] PP_Instance instance, |
293 [out] PP_Var llc_tool_name, | 289 [out] PP_Var llc_tool_name, |
294 [out] PP_Var ld_tool_name); | 290 [out] PP_Var ld_tool_name); |
295 | 291 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 * Otherwise, |stream_callback| is called repeatedly with blocks of data | 331 * Otherwise, |stream_callback| is called repeatedly with blocks of data |
336 * as they are received. |stream_finished_callback| is called after all | 332 * as they are received. |stream_finished_callback| is called after all |
337 * data has been received and dispatched to |stream_callback|. | 333 * data has been received and dispatched to |stream_callback|. |
338 */ | 334 */ |
339 void StreamPexe([in] PP_Instance instance, | 335 void StreamPexe([in] PP_Instance instance, |
340 [in] str_t pexe_url, | 336 [in] str_t pexe_url, |
341 [in] int32_t opt_level, | 337 [in] int32_t opt_level, |
342 [in] PPP_PexeStreamHandler stream_handler, | 338 [in] PPP_PexeStreamHandler stream_handler, |
343 [inout] mem_t stream_handler_user_data); | 339 [inout] mem_t stream_handler_user_data); |
344 }; | 340 }; |
OLD | NEW |