| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 * injection only to avoid the linkage problems that occur because the NaCl | 72 * injection only to avoid the linkage problems that occur because the NaCl |
| 73 * plugin is built as a separate DLL/DSO | 73 * plugin is built as a separate DLL/DSO |
| 74 * (see http://code.google.com/p/chromium/issues/detail?id=114439#c8). | 74 * (see http://code.google.com/p/chromium/issues/detail?id=114439#c8). |
| 75 */ | 75 */ |
| 76 int32_t BrokerDuplicateHandle([in] PP_FileHandle source_handle, | 76 int32_t BrokerDuplicateHandle([in] PP_FileHandle source_handle, |
| 77 [in] uint32_t process_id, | 77 [in] uint32_t process_id, |
| 78 [out] PP_FileHandle target_handle, | 78 [out] PP_FileHandle target_handle, |
| 79 [in] uint32_t desired_access, | 79 [in] uint32_t desired_access, |
| 80 [in] uint32_t options); | 80 [in] uint32_t options); |
| 81 | 81 |
| 82 /* Check if PNaCl is installed and attempt to install if necessary. |
| 83 * Callback is called when the check is done and PNaCl is already installed, |
| 84 * or after an on-demand install is attempted. Called back with PP_OK if |
| 85 * PNaCl is available. Called back with an error otherwise. |
| 86 */ |
| 87 int32_t EnsurePnaclInstalled([in] PP_Instance instance, |
| 88 [in] PP_CompletionCallback callback); |
| 89 |
| 82 /* 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 |
| 83 * component directory, or an invalid handle on failure. | 91 * component directory, or an invalid handle on failure. |
| 84 * Do we want this to take a completion callback and be async, or | |
| 85 * could we make this happen on another thread? | |
| 86 */ | 92 */ |
| 87 PP_FileHandle GetReadonlyPnaclFd([in] str_t filename); | 93 PP_FileHandle GetReadonlyPnaclFd([in] str_t filename); |
| 88 | 94 |
| 89 /* 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 |
| 90 * the last handle is closed (or earlier on POSIX systems), and | 96 * the last handle is closed (or earlier on POSIX systems), and |
| 91 * returns a posix handle to that temporary file. | 97 * returns a posix handle to that temporary file. |
| 92 */ | 98 */ |
| 93 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance); | 99 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance); |
| 94 | 100 |
| 95 /* Create a temporary file, which will be deleted by the time the last | 101 /* 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... |
| 138 | 144 |
| 139 /* Opens a NaCl executable file in the application's extension directory | 145 /* Opens a NaCl executable file in the application's extension directory |
| 140 * corresponding to the file URL and returns a file descriptor, or an invalid | 146 * corresponding to the file URL and returns a file descriptor, or an invalid |
| 141 * handle on failure. |metadata| is left unchanged on failure. | 147 * handle on failure. |metadata| is left unchanged on failure. |
| 142 */ | 148 */ |
| 143 PP_FileHandle OpenNaClExecutable([in] PP_Instance instance, | 149 PP_FileHandle OpenNaClExecutable([in] PP_Instance instance, |
| 144 [in] str_t file_url, | 150 [in] str_t file_url, |
| 145 [out] uint64_t file_token_lo, | 151 [out] uint64_t file_token_lo, |
| 146 [out] uint64_t file_token_hi); | 152 [out] uint64_t file_token_hi); |
| 147 }; | 153 }; |
| OLD | NEW |