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_8 { | 11 interface PPB_NaCl_Private_0_9 { |
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 PP_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 |
(...skipping 20 matching lines...) Expand all Loading... |
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 | 49 |
50 /* Return true if we are off the record. | 50 /* Return true if we are off the record. |
51 */ | 51 */ |
52 PP_Bool IsOffTheRecord([in] PP_Instance instance); | 52 PP_Bool IsOffTheRecord(); |
| 53 |
| 54 /* Return true if PNaCl is turned on. |
| 55 */ |
| 56 PP_Bool IsPnaclEnabled(); |
53 }; | 57 }; |
OLD | NEW |