| 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" | 8 #include "ppapi/c/private/pp_file_handle.h" |
| 9 | 9 |
| 10 /* PPB_NaCl_Private */ | 10 /* PPB_NaCl_Private */ |
| 11 interface PPB_NaCl_Private_0_7 { | 11 interface PPB_NaCl_Private_0_8 { |
| 12 /* 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 |
| 13 * 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 |
| 14 * write |socket_count| nacl::Handles to imc_handles. | 14 * write |socket_count| nacl::Handles to imc_handles. |
| 15 */ | 15 */ |
| 16 bool LaunchSelLdr([in] PP_Instance instance, | 16 PP_Bool LaunchSelLdr([in] PP_Instance instance, |
| 17 [in] str_t alleged_url, | 17 [in] str_t alleged_url, |
| 18 [in] int32_t socket_count, | 18 [in] int32_t socket_count, |
| 19 [out] mem_t imc_handles); | 19 [out] mem_t imc_handles); |
| 20 | 20 |
| 21 /* 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 |
| 22 * browser's renderer process. | 22 * browser's renderer process. |
| 23 */ | 23 */ |
| 24 bool StartPpapiProxy([in] PP_Instance instance); | 24 PP_Bool StartPpapiProxy([in] PP_Instance instance); |
| 25 | 25 |
| 26 /* On POSIX systems, this function returns the file descriptor of | 26 /* On POSIX systems, this function returns the file descriptor of |
| 27 * /dev/urandom. On non-POSIX systems, this function returns 0. | 27 * /dev/urandom. On non-POSIX systems, this function returns 0. |
| 28 */ | 28 */ |
| 29 int32_t UrandomFD(); | 29 int32_t UrandomFD(); |
| 30 | 30 |
| 31 /* Whether the Pepper 3D interfaces should be disabled in the NaCl PPAPI | 31 /* Whether the Pepper 3D interfaces should be disabled in the NaCl PPAPI |
| 32 * proxy. This is so paranoid admins can effectively prevent untrusted shader | 32 * proxy. This is so paranoid admins can effectively prevent untrusted shader |
| 33 * code to be processed by the graphics stack. | 33 * code to be processed by the graphics stack. |
| 34 */ | 34 */ |
| 35 bool Are3DInterfacesDisabled(); | 35 bool Are3DInterfacesDisabled(); |
| 36 | 36 |
| 37 /* 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 |
| 38 * component directory, or -1 on error. | 38 * component directory, or -1 on error. |
| 39 * 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 |
| 40 * could we make this happen on another thread? | 40 * could we make this happen on another thread? |
| 41 */ | 41 */ |
| 42 PP_FileHandle GetReadonlyPnaclFd([in] str_t filename); | 42 PP_FileHandle GetReadonlyPnaclFd([in] str_t filename); |
| 43 | 43 |
| 44 /* This creates a temporary file that will be deleted by the time | 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 | 45 * the last handle is closed (or earlier on POSIX systems), and |
| 46 * returns a posix handle to that temporary file. | 46 * returns a posix handle to that temporary file. |
| 47 */ | 47 */ |
| 48 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance); | 48 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance); |
| 49 |
| 50 /* Return true if we are off the record. |
| 51 */ |
| 52 PP_Bool IsOffTheRecord([in] PP_Instance instance); |
| 49 }; | 53 }; |
| OLD | NEW |