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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 * injection only to avoid the linkage problems that occur because the NaCl | 233 * injection only to avoid the linkage problems that occur because the NaCl |
234 * plugin is built as a separate DLL/DSO | 234 * plugin is built as a separate DLL/DSO |
235 * (see http://code.google.com/p/chromium/issues/detail?id=114439#c8). | 235 * (see http://code.google.com/p/chromium/issues/detail?id=114439#c8). |
236 */ | 236 */ |
237 int32_t BrokerDuplicateHandle([in] PP_FileHandle source_handle, | 237 int32_t BrokerDuplicateHandle([in] PP_FileHandle source_handle, |
238 [in] uint32_t process_id, | 238 [in] uint32_t process_id, |
239 [out] PP_FileHandle target_handle, | 239 [out] PP_FileHandle target_handle, |
240 [in] uint32_t desired_access, | 240 [in] uint32_t desired_access, |
241 [in] uint32_t options); | 241 [in] uint32_t options); |
242 | 242 |
243 /* Returns a read-only file descriptor of a file rooted in the Pnacl | 243 /* Returns a read-only file descriptor for a url for pnacl translator tools, |
244 * component directory, or an invalid handle on failure. | 244 * or an invalid handle on failure. |
245 */ | 245 */ |
246 PP_FileHandle GetReadonlyPnaclFd([in] str_t filename); | 246 PP_FileHandle GetReadonlyPnaclFd([in] str_t url); |
247 | 247 |
248 /* This creates a temporary file that will be deleted by the time | 248 /* This creates a temporary file that will be deleted by the time |
249 * the last handle is closed (or earlier on POSIX systems), and | 249 * the last handle is closed (or earlier on POSIX systems), and |
250 * returns a posix handle to that temporary file. | 250 * returns a posix handle to that temporary file. |
251 */ | 251 */ |
252 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance); | 252 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance); |
253 | 253 |
254 /* Return the number of processors in the system as reported by the OS */ | 254 /* Return the number of processors in the system as reported by the OS */ |
255 int32_t GetNumberOfProcessors(); | 255 int32_t GetNumberOfProcessors(); |
256 | 256 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 [out] PP_NaClFileInfo file_info, | 425 [out] PP_NaClFileInfo file_info, |
426 [in] PP_CompletionCallback callback); | 426 [in] PP_CompletionCallback callback); |
427 | 427 |
428 /* Downloads a non-nexe file specified in the manifest, and sets |file_info| | 428 /* Downloads a non-nexe file specified in the manifest, and sets |file_info| |
429 * to corresponding information about the file. */ | 429 * to corresponding information about the file. */ |
430 void DownloadFile([in] PP_Instance instance, | 430 void DownloadFile([in] PP_Instance instance, |
431 [in] str_t url, | 431 [in] str_t url, |
432 [out] PP_NaClFileInfo file_info, | 432 [out] PP_NaClFileInfo file_info, |
433 [in] PP_CompletionCallback callback); | 433 [in] PP_CompletionCallback callback); |
434 }; | 434 }; |
OLD | NEW |