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. */ | 6 /* This file contains NaCl private interfaces. */ |
7 | 7 |
| 8 #include "ppapi/c/private/pp_file_handle.h" |
| 9 |
8 /* PPB_NaCl_Private */ | 10 /* PPB_NaCl_Private */ |
9 interface PPB_NaCl_Private_0_6 { | 11 interface PPB_NaCl_Private_0_7 { |
10 /* This function launches NaCl's sel_ldr process. On success, the function | 12 /* This function launches NaCl's sel_ldr process. On success, the function |
11 * returns true, otherwise it returns false. When it returns true, it will | 13 * returns true, otherwise it returns false. When it returns true, it will |
12 * write |socket_count| nacl::Handles to imc_handles. | 14 * write |socket_count| nacl::Handles to imc_handles. |
13 */ | 15 */ |
14 bool LaunchSelLdr([in] PP_Instance instance, | 16 bool LaunchSelLdr([in] PP_Instance instance, |
15 [in] str_t alleged_url, | 17 [in] str_t alleged_url, |
16 [in] int32_t socket_count, | 18 [in] int32_t socket_count, |
17 [out] mem_t imc_handles); | 19 [out] mem_t imc_handles); |
18 | 20 |
19 /* This function starts the PPAPI proxy so the nexe can communicate with the | 21 /* This function starts the PPAPI proxy so the nexe can communicate with the |
(...skipping 10 matching lines...) Expand all Loading... |
30 * proxy. This is so paranoid admins can effectively prevent untrusted shader | 32 * proxy. This is so paranoid admins can effectively prevent untrusted shader |
31 * code to be processed by the graphics stack. | 33 * code to be processed by the graphics stack. |
32 */ | 34 */ |
33 bool Are3DInterfacesDisabled(); | 35 bool Are3DInterfacesDisabled(); |
34 | 36 |
35 /* Returns a read-only file descriptor of a file rooted in the Pnacl | 37 /* Returns a read-only file descriptor of a file rooted in the Pnacl |
36 * component directory, or -1 on error. | 38 * component directory, or -1 on error. |
37 * Do we want this to take a completion callback and be async, or | 39 * Do we want this to take a completion callback and be async, or |
38 * could we make this happen on another thread? | 40 * could we make this happen on another thread? |
39 */ | 41 */ |
40 int32_t GetReadonlyPnaclFd([in] str_t filename); | 42 PP_FileHandle GetReadonlyPnaclFd([in] str_t filename); |
| 43 |
| 44 /* This creates a temporary file that will be deleted by the time |
| 45 * the last handle is closed (or earlier on POSIX systems), and |
| 46 * returns a posix handle to that temporary file. |
| 47 */ |
| 48 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance); |
41 }; | 49 }; |
OLD | NEW |