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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 * injection only to avoid the linkage problems that occur because the NaCl | 229 * injection only to avoid the linkage problems that occur because the NaCl |
230 * plugin is built as a separate DLL/DSO | 230 * plugin is built as a separate DLL/DSO |
231 * (see http://code.google.com/p/chromium/issues/detail?id=114439#c8). | 231 * (see http://code.google.com/p/chromium/issues/detail?id=114439#c8). |
232 */ | 232 */ |
233 int32_t BrokerDuplicateHandle([in] PP_FileHandle source_handle, | 233 int32_t BrokerDuplicateHandle([in] PP_FileHandle source_handle, |
234 [in] uint32_t process_id, | 234 [in] uint32_t process_id, |
235 [out] PP_FileHandle target_handle, | 235 [out] PP_FileHandle target_handle, |
236 [in] uint32_t desired_access, | 236 [in] uint32_t desired_access, |
237 [in] uint32_t options); | 237 [in] uint32_t options); |
238 | 238 |
239 /* Returns a read-only file descriptor for a url for pnacl translator tools, | 239 /* Returns a read-only (but executable) file descriptor / file info for |
240 * or an invalid handle on failure. | 240 * a url for pnacl translator tools. Returns an invalid handle on failure. |
241 */ | 241 */ |
242 PP_FileHandle GetReadonlyPnaclFd([in] str_t url); | 242 void GetReadExecPnaclFd([in] str_t url, |
| 243 [out] PP_NaClFileInfo out_file_info); |
243 | 244 |
244 /* This creates a temporary file that will be deleted by the time | 245 /* This creates a temporary file that will be deleted by the time |
245 * the last handle is closed (or earlier on POSIX systems), and | 246 * the last handle is closed (or earlier on POSIX systems), and |
246 * returns a posix handle to that temporary file. | 247 * returns a posix handle to that temporary file. |
247 */ | 248 */ |
248 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance); | 249 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance); |
249 | 250 |
250 /* Return the number of processors in the system as reported by the OS */ | 251 /* Return the number of processors in the system as reported by the OS */ |
251 int32_t GetNumberOfProcessors(); | 252 int32_t GetNumberOfProcessors(); |
252 | 253 |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 * process, we consult our internal pnacl.json instead of the user-supplied | 430 * process, we consult our internal pnacl.json instead of the user-supplied |
430 * NMF. | 431 * NMF. |
431 * Fails for files which require PNaCl translation. | 432 * Fails for files which require PNaCl translation. |
432 */ | 433 */ |
433 void OpenManifestEntry([in] PP_Instance instance, | 434 void OpenManifestEntry([in] PP_Instance instance, |
434 [in] PP_Bool is_helper_process, | 435 [in] PP_Bool is_helper_process, |
435 [in] str_t key, | 436 [in] str_t key, |
436 [out] PP_NaClFileInfo file_info, | 437 [out] PP_NaClFileInfo file_info, |
437 [in] PP_CompletionCallback callback); | 438 [in] PP_CompletionCallback callback); |
438 }; | 439 }; |
OLD | NEW |