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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 struct PP_PNaClOptions { | 147 struct PP_PNaClOptions { |
148 PP_Bool translate; | 148 PP_Bool translate; |
149 PP_Bool is_debug; | 149 PP_Bool is_debug; |
150 int32_t opt_level; | 150 int32_t opt_level; |
151 }; | 151 }; |
152 | 152 |
153 /* Callback invoked upon completion of PPP_ManifestService::OpenResource(). */ | 153 /* Callback invoked upon completion of PPP_ManifestService::OpenResource(). */ |
154 typedef void PP_OpenResourceCompletionCallback([inout] mem_t user_data, | 154 typedef void PP_OpenResourceCompletionCallback([inout] mem_t user_data, |
155 [in] PP_FileHandle file_handle); | 155 [in] PP_FileHandle file_handle); |
156 | 156 |
157 /* Corresponds to NaClFileInfo in | |
158 * native_client/src/trusted/validator/nacl_file_info.h */ | |
159 struct PP_NaClFileInfo { | 157 struct PP_NaClFileInfo { |
160 PP_FileHandle handle; | 158 PP_FileHandle handle; |
161 | 159 |
162 /* See NaClFileToken comment in nacl_file_info.h */ | 160 /* See NaClFileToken comment in nacl_process_host.h */ |
163 uint64_t token_lo; | 161 uint64_t token_lo; |
164 uint64_t token_hi; | 162 uint64_t token_hi; |
165 }; | 163 }; |
166 | 164 |
167 /* PPB_NaCl_Private */ | 165 /* PPB_NaCl_Private */ |
168 interface PPB_NaCl_Private { | 166 interface PPB_NaCl_Private { |
169 /* Launches NaCl's sel_ldr process. Returns PP_EXTERNAL_PLUGIN_OK on success | 167 /* Launches NaCl's sel_ldr process. Returns PP_EXTERNAL_PLUGIN_OK on success |
170 * and writes a NaClHandle to imc_handle. Returns PP_EXTERNAL_PLUGIN_FAILED on | 168 * and writes a NaClHandle to imc_handle. Returns PP_EXTERNAL_PLUGIN_FAILED on |
171 * failure. | 169 * failure. |
172 * The |nexe_file_info| is currently used only in non-SFI mode. It is the | 170 * The |nexe_file_info| is currently used only in non-SFI mode. It is the |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 * Otherwise, |stream_callback| is called repeatedly with blocks of data | 329 * Otherwise, |stream_callback| is called repeatedly with blocks of data |
332 * as they are received. |stream_finished_callback| is called after all | 330 * as they are received. |stream_finished_callback| is called after all |
333 * data has been received and dispatched to |stream_callback|. | 331 * data has been received and dispatched to |stream_callback|. |
334 */ | 332 */ |
335 void StreamPexe([in] PP_Instance instance, | 333 void StreamPexe([in] PP_Instance instance, |
336 [in] str_t pexe_url, | 334 [in] str_t pexe_url, |
337 [in] int32_t opt_level, | 335 [in] int32_t opt_level, |
338 [in] PPP_PexeStreamHandler stream_handler, | 336 [in] PPP_PexeStreamHandler stream_handler, |
339 [inout] mem_t stream_handler_user_data); | 337 [inout] mem_t stream_handler_user_data); |
340 }; | 338 }; |
OLD | NEW |