Chromium Code Reviews| 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 |
|
Mark Seaborn
2015/02/12 03:57:34
If you rebase, you'll find that ppb_nacl_private.i
| |
| 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 |
| 11 }; | 11 }; |
| 12 | 12 |
| 13 #inline c | 13 #inline c |
| 14 #include "ppapi/c/private/pp_file_handle.h" | 14 #include "ppapi/c/private/pp_file_handle.h" |
| 15 #include "ppapi/c/private/ppb_instance_private.h" | 15 #include "ppapi/c/private/ppb_instance_private.h" |
| (...skipping 131 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 | 157 /* Corresponds to NaClFileInfo in native_client/src/public/nacl_file_info.h */ |
| 158 * native_client/src/trusted/validator/nacl_file_info.h */ | |
| 159 struct PP_NaClFileInfo { | 158 struct PP_NaClFileInfo { |
| 160 PP_FileHandle handle; | 159 PP_FileHandle handle; |
| 161 | 160 |
| 162 /* See NaClFileToken comment in nacl_file_info.h */ | 161 /* See NaClFileToken comment in nacl_file_info.h */ |
| 163 uint64_t token_lo; | 162 uint64_t token_lo; |
| 164 uint64_t token_hi; | 163 uint64_t token_hi; |
| 165 }; | 164 }; |
| 166 | 165 |
| 167 /* PPB_NaCl_Private */ | 166 /* PPB_NaCl_Private */ |
| 168 interface PPB_NaCl_Private { | 167 interface PPB_NaCl_Private { |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 295 // http://llvm.org/docs/CommandGuide/llc.html#cmdoption-mattr | 294 // http://llvm.org/docs/CommandGuide/llc.html#cmdoption-mattr |
| 296 PP_Var GetCpuFeatureAttrs(); | 295 PP_Var GetCpuFeatureAttrs(); |
| 297 | 296 |
| 298 /* Downloads the .nexe file at the given URL to a file, and sets |file_info| | 297 /* Downloads the .nexe file at the given URL to a file, and sets |file_info| |
| 299 * to information for a handle to a file containing its contents. | 298 * to information for a handle to a file containing its contents. |
| 300 * If metadata for identity-based validation caching is available | 299 * If metadata for identity-based validation caching is available |
| 301 * then it sets token information in |file_info| (otherwise left untouched). | 300 * then it sets token information in |file_info| (otherwise left untouched). |
| 302 */ | 301 */ |
| 303 void DownloadNexe([in] PP_Instance instance, | 302 void DownloadNexe([in] PP_Instance instance, |
| 304 [in] str_t url, | 303 [in] str_t url, |
| 304 [in] PP_Bool download_resource_files, | |
| 305 [out] PP_NaClFileInfo file_info, | 305 [out] PP_NaClFileInfo file_info, |
| 306 [in] PP_CompletionCallback callback); | 306 [in] PP_CompletionCallback callback); |
| 307 | 307 |
| 308 /* Reports the status of sel_ldr for UMA reporting. | 308 /* Reports the status of sel_ldr for UMA reporting. |
| 309 * |max_status| has to be provided because the implementation of this | 309 * |max_status| has to be provided because the implementation of this |
| 310 * interface can't access the NaClErrorCode enum. | 310 * interface can't access the NaClErrorCode enum. |
| 311 */ | 311 */ |
| 312 void ReportSelLdrStatus([in] PP_Instance instance, | 312 void ReportSelLdrStatus([in] PP_Instance instance, |
| 313 [in] int32_t load_status, | 313 [in] int32_t load_status, |
| 314 [in] int32_t max_status); | 314 [in] int32_t max_status); |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 331 * Otherwise, |stream_callback| is called repeatedly with blocks of data | 331 * Otherwise, |stream_callback| is called repeatedly with blocks of data |
| 332 * as they are received. |stream_finished_callback| is called after all | 332 * as they are received. |stream_finished_callback| is called after all |
| 333 * data has been received and dispatched to |stream_callback|. | 333 * data has been received and dispatched to |stream_callback|. |
| 334 */ | 334 */ |
| 335 void StreamPexe([in] PP_Instance instance, | 335 void StreamPexe([in] PP_Instance instance, |
| 336 [in] str_t pexe_url, | 336 [in] str_t pexe_url, |
| 337 [in] int32_t opt_level, | 337 [in] int32_t opt_level, |
| 338 [in] PPP_PexeStreamHandler stream_handler, | 338 [in] PPP_PexeStreamHandler stream_handler, |
| 339 [inout] mem_t stream_handler_user_data); | 339 [inout] mem_t stream_handler_user_data); |
| 340 }; | 340 }; |
| OLD | NEW |