| 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_5 { |
| 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. |
| 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 | |
| 15 * |nacl_process_id|. | |
| 16 */ | 13 */ |
| 17 bool LaunchSelLdr( | 14 bool LaunchSelLdr([in] PP_Instance instance, |
| 18 [in] str_t alleged_url, | 15 [in] str_t alleged_url, |
| 19 [in] int32_t socket_count, | 16 [in] int32_t socket_count, |
| 20 [out] mem_t imc_handles, | 17 [out] mem_t imc_handles); |
| 21 [out] mem_t nacl_process_handle, | 18 |
| 22 [out] int32_t nacl_process_id); | 19 /* This function starts the PPAPI proxy so the nexe can communicate with the |
| 20 * browser's renderer process. |
| 21 */ |
| 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 }; | 34 }; |
| OLD | NEW |