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 #inline c | 9 #inline c |
10 #include "ppapi/c/private/pp_file_handle.h" | 10 #include "ppapi/c/private/pp_file_handle.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
85 * injection only to avoid the linkage problems that occur because the NaCl | 85 * injection only to avoid the linkage problems that occur because the NaCl |
86 * plugin is built as a separate DLL/DSO | 86 * plugin is built as a separate DLL/DSO |
87 * (see http://code.google.com/p/chromium/issues/detail?id=114439#c8). | 87 * (see http://code.google.com/p/chromium/issues/detail?id=114439#c8). |
88 */ | 88 */ |
89 int32_t BrokerDuplicateHandle([in] PP_FileHandle source_handle, | 89 int32_t BrokerDuplicateHandle([in] PP_FileHandle source_handle, |
90 [in] uint32_t process_id, | 90 [in] uint32_t process_id, |
91 [out] PP_FileHandle target_handle, | 91 [out] PP_FileHandle target_handle, |
92 [in] uint32_t desired_access, | 92 [in] uint32_t desired_access, |
93 [in] uint32_t options); | 93 [in] uint32_t options); |
94 | 94 |
95 /* Check if PNaCl is installed and attempt to install if necessary. | |
96 * Callback is called when the check is done and PNaCl is already installed, | |
97 * or after an on-demand install is attempted. Called back with PP_OK is | |
Derek Schuff
2013/07/23 21:39:29
is->if
jvoung (off chromium)
2013/07/31 21:41:07
Done.
| |
98 * PNaCl is available. Called back with an error otherwise. | |
99 */ | |
100 int32_t EnsurePnaclInstalled([in] PP_Instance instance, | |
101 [in] PP_CompletionCallback callback); | |
102 | |
95 /* Returns a read-only file descriptor of a file rooted in the Pnacl | 103 /* Returns a read-only file descriptor of a file rooted in the Pnacl |
96 * component directory, or an invalid handle on failure. | 104 * component directory, or an invalid handle on failure. |
97 * Do we want this to take a completion callback and be async, or | |
98 * could we make this happen on another thread? | |
99 */ | 105 */ |
100 PP_FileHandle GetReadonlyPnaclFd([in] str_t filename); | 106 PP_FileHandle GetReadonlyPnaclFd([in] str_t filename); |
101 | 107 |
102 /* This creates a temporary file that will be deleted by the time | 108 /* This creates a temporary file that will be deleted by the time |
103 * the last handle is closed (or earlier on POSIX systems), and | 109 * the last handle is closed (or earlier on POSIX systems), and |
104 * returns a posix handle to that temporary file. | 110 * returns a posix handle to that temporary file. |
105 */ | 111 */ |
106 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance); | 112 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance); |
107 | 113 |
108 /* Create a temporary file, which will be deleted by the time the last | 114 /* Create a temporary file, which will be deleted by the time the last |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
151 | 157 |
152 /* Opens a NaCl executable file in the application's extension directory | 158 /* Opens a NaCl executable file in the application's extension directory |
153 * corresponding to the file URL and returns a file descriptor, or an invalid | 159 * corresponding to the file URL and returns a file descriptor, or an invalid |
154 * handle on failure. |metadata| is left unchanged on failure. | 160 * handle on failure. |metadata| is left unchanged on failure. |
155 */ | 161 */ |
156 PP_FileHandle OpenNaClExecutable([in] PP_Instance instance, | 162 PP_FileHandle OpenNaClExecutable([in] PP_Instance instance, |
157 [in] str_t file_url, | 163 [in] str_t file_url, |
158 [out] uint64_t file_token_lo, | 164 [out] uint64_t file_token_lo, |
159 [out] uint64_t file_token_hi); | 165 [out] uint64_t file_token_hi); |
160 }; | 166 }; |
OLD | NEW |