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. This interface is not versioned | 6 /* This file contains NaCl private interfaces. This interface is not versioned |
7 * and is for internal Chrome use. It may change without notice. */ | 7 * and is for internal Chrome use. It may change without notice. */ |
8 | 8 |
9 label Chrome { | 9 label Chrome { |
10 M25 = 1.0 | 10 M25 = 1.0 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 * injection only to avoid the linkage problems that occur because the NaCl | 80 * injection only to avoid the linkage problems that occur because the NaCl |
81 * plugin is built as a separate DLL/DSO | 81 * plugin is built as a separate DLL/DSO |
82 * (see http://code.google.com/p/chromium/issues/detail?id=114439#c8). | 82 * (see http://code.google.com/p/chromium/issues/detail?id=114439#c8). |
83 */ | 83 */ |
84 int32_t BrokerDuplicateHandle([in] PP_FileHandle source_handle, | 84 int32_t BrokerDuplicateHandle([in] PP_FileHandle source_handle, |
85 [in] uint32_t process_id, | 85 [in] uint32_t process_id, |
86 [out] PP_FileHandle target_handle, | 86 [out] PP_FileHandle target_handle, |
87 [in] uint32_t desired_access, | 87 [in] uint32_t desired_access, |
88 [in] uint32_t options); | 88 [in] uint32_t options); |
89 | 89 |
90 /* Check if PNaCl is installed and attempt to install if necessary. | |
91 * Callback is called when the check is done and PNaCl is already installed, | |
92 * or after an on-demand install is attempted. Called back with PP_OK if | |
93 * PNaCl is available. Called back with an error otherwise. | |
94 */ | |
95 int32_t EnsurePnaclInstalled([in] PP_Instance instance, | |
96 [in] PP_CompletionCallback callback); | |
97 | |
98 /* Returns a read-only file descriptor of a file rooted in the Pnacl | 90 /* Returns a read-only file descriptor of a file rooted in the Pnacl |
99 * component directory, or an invalid handle on failure. | 91 * component directory, or an invalid handle on failure. |
100 */ | 92 */ |
101 PP_FileHandle GetReadonlyPnaclFd([in] str_t filename); | 93 PP_FileHandle GetReadonlyPnaclFd([in] str_t filename); |
102 | 94 |
103 /* This creates a temporary file that will be deleted by the time | 95 /* This creates a temporary file that will be deleted by the time |
104 * the last handle is closed (or earlier on POSIX systems), and | 96 * the last handle is closed (or earlier on POSIX systems), and |
105 * returns a posix handle to that temporary file. | 97 * returns a posix handle to that temporary file. |
106 */ | 98 */ |
107 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance); | 99 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 | 145 |
154 /* Opens a NaCl executable file in the application's extension directory | 146 /* Opens a NaCl executable file in the application's extension directory |
155 * corresponding to the file URL and returns a file descriptor, or an invalid | 147 * corresponding to the file URL and returns a file descriptor, or an invalid |
156 * handle on failure. |metadata| is left unchanged on failure. | 148 * handle on failure. |metadata| is left unchanged on failure. |
157 */ | 149 */ |
158 PP_FileHandle OpenNaClExecutable([in] PP_Instance instance, | 150 PP_FileHandle OpenNaClExecutable([in] PP_Instance instance, |
159 [in] str_t file_url, | 151 [in] str_t file_url, |
160 [out] uint64_t file_token_lo, | 152 [out] uint64_t file_token_lo, |
161 [out] uint64_t file_token_hi); | 153 [out] uint64_t file_token_hi); |
162 }; | 154 }; |
OLD | NEW |