OLD | NEW |
| (Empty) |
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 * Use of this source code is governed by a BSD-style license that can be | |
3 * found in the LICENSE file. | |
4 */ | |
5 | |
6 /* This file contains NaCl private interfaces. */ | |
7 | |
8 /* PPB_NaCl_Private */ | |
9 interface PPB_NaCl_Private_0_2 { | |
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 | |
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, | |
14 * the function will write the process ID of the created process to | |
15 * |nacl_process_id|. | |
16 */ | |
17 bool LaunchSelLdr( | |
18 [in] str_t alleged_url, | |
19 [in] int32_t socket_count, | |
20 [out] mem_t imc_handles, | |
21 [out] mem_t nacl_process_handle, | |
22 [out] int32_t nacl_process_id); | |
23 | |
24 /* On POSIX systems, this function returns the file descriptor of | |
25 * /dev/urandom. On non-POSIX systems, this function returns 0. | |
26 */ | |
27 int32_t UrandomFD(); | |
28 | |
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 | |
31 * code to be processed by the graphics stack. | |
32 */ | |
33 bool Are3DInterfacesDisabled(); | |
34 }; | |
OLD | NEW |