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_2 { | 9 interface PPB_NaCl_Private_0_2 { |
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 and will write the | 12 * write |socket_count| nacl::Handles to imc_handles and will write the |
13 * nacl::Handle of the created process to |nacl_process_handle|. Finally, | 13 * nacl::Handle of the created process to |nacl_process_handle|. Finally, |
14 * the function will write the process ID of the created process to | 14 * the function will write the process ID of the created process to |
15 * |nacl_process_id|. | 15 * |nacl_process_id|. |
16 */ | 16 */ |
17 bool LaunchSelLdr( | 17 bool LaunchSelLdr( |
| 18 [in] int32_t instance, |
18 [in] str_t alleged_url, | 19 [in] str_t alleged_url, |
19 [in] int32_t socket_count, | 20 [in] int32_t socket_count, |
20 [out] mem_t imc_handles, | 21 [out] mem_t imc_handles, |
21 [out] mem_t nacl_process_handle, | 22 [out] mem_t nacl_process_handle, |
22 [out] int32_t nacl_process_id); | 23 [out] int32_t nacl_process_id); |
23 | 24 |
24 /* On POSIX systems, this function returns the file descriptor of | 25 /* On POSIX systems, this function returns the file descriptor of |
25 * /dev/urandom. On non-POSIX systems, this function returns 0. | 26 * /dev/urandom. On non-POSIX systems, this function returns 0. |
26 */ | 27 */ |
27 int32_t UrandomFD(); | 28 int32_t UrandomFD(); |
28 | 29 |
29 /* Whether the Pepper 3D interfaces should be disabled in the NaCl PPAPI | 30 /* Whether the Pepper 3D interfaces should be disabled in the NaCl PPAPI |
30 * proxy. This is so paranoid admins can effectively prevent untrusted shader | 31 * proxy. This is so paranoid admins can effectively prevent untrusted shader |
31 * code to be processed by the graphics stack. | 32 * code to be processed by the graphics stack. |
32 */ | 33 */ |
33 bool Are3DInterfacesDisabled(); | 34 bool Are3DInterfacesDisabled(); |
34 }; | 35 }; |
OLD | NEW |