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 /* PPB_NaCl_Private */ | 8 /* PPB_NaCl_Private */ |
9 interface PPB_NaCl_Private_0_5 { | 9 interface PPB_NaCl_Private_0_6 { |
10 /* This function launches NaCl's sel_ldr process. On success, the function | 10 /* 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 | 11 * returns true, otherwise it returns false. When it returns true, it will |
12 * write |socket_count| nacl::Handles to imc_handles. | 12 * write |socket_count| nacl::Handles to imc_handles. |
13 */ | 13 */ |
14 bool LaunchSelLdr([in] PP_Instance instance, | 14 bool LaunchSelLdr([in] PP_Instance instance, |
15 [in] str_t alleged_url, | 15 [in] str_t alleged_url, |
16 [in] int32_t socket_count, | 16 [in] int32_t socket_count, |
17 [out] mem_t imc_handles); | 17 [out] mem_t imc_handles); |
18 | 18 |
19 /* This function starts the PPAPI proxy so the nexe can communicate with the | 19 /* This function starts the PPAPI proxy so the nexe can communicate with the |
20 * browser's renderer process. | 20 * browser's renderer process. |
21 */ | 21 */ |
22 bool StartPpapiProxy([in] PP_Instance instance); | 22 bool StartPpapiProxy([in] PP_Instance instance); |
23 | 23 |
24 /* On POSIX systems, this function returns the file descriptor of | 24 /* On POSIX systems, this function returns the file descriptor of |
25 * /dev/urandom. On non-POSIX systems, this function returns 0. | 25 * /dev/urandom. On non-POSIX systems, this function returns 0. |
26 */ | 26 */ |
27 int32_t UrandomFD(); | 27 int32_t UrandomFD(); |
28 | 28 |
29 /* Whether the Pepper 3D interfaces should be disabled in the NaCl PPAPI | 29 /* Whether the Pepper 3D interfaces should be disabled in the NaCl PPAPI |
30 * proxy. This is so paranoid admins can effectively prevent untrusted shader | 30 * proxy. This is so paranoid admins can effectively prevent untrusted shader |
31 * code to be processed by the graphics stack. | 31 * code to be processed by the graphics stack. |
32 */ | 32 */ |
33 bool Are3DInterfacesDisabled(); | 33 bool Are3DInterfacesDisabled(); |
| 34 |
| 35 /* Returns a read-only file descriptor of a file rooted in the Pnacl |
| 36 * component directory, or -1 on error. |
| 37 * Do we want this to take a completion callback and be async, or |
| 38 * could we make this happen on another thread? |
| 39 */ |
| 40 int32_t GetReadonlyPnaclFd([in] str_t filename); |
34 }; | 41 }; |
OLD | NEW |