| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 * return false. However, other functions also can return false. | 149 * return false. However, other functions also can return false. |
| 150 * Once false is called, as the service has been destructed, all functions | 150 * Once false is called, as the service has been destructed, all functions |
| 151 * should never be called afterwords. | 151 * should never be called afterwords. |
| 152 */ | 152 */ |
| 153 interface PPP_ManifestService { | 153 interface PPP_ManifestService { |
| 154 /* Called when ManifestService should be destructed. */ | 154 /* Called when ManifestService should be destructed. */ |
| 155 PP_Bool Quit([inout] mem_t user_data); | 155 PP_Bool Quit([inout] mem_t user_data); |
| 156 | 156 |
| 157 /* Called when PPAPI initialization in the NaCl plugin is finished. */ | 157 /* Called when PPAPI initialization in the NaCl plugin is finished. */ |
| 158 PP_Bool StartupInitializationComplete([inout] mem_t user_data); | 158 PP_Bool StartupInitializationComplete([inout] mem_t user_data); |
| 159 | |
| 160 /* Called when irt_open_resource() is invoked in the NaCl plugin. | |
| 161 * Upon completion, callback will be invoked with given callback_user_data | |
| 162 * and the result file handle (or PP_kInvalidFileHandle on error). */ | |
| 163 PP_Bool OpenResource([inout] mem_t user_data, | |
| 164 [in] str_t entry_key, | |
| 165 [in] PP_OpenResourceCompletionCallback callback, | |
| 166 [inout] mem_t callback_user_data); | |
| 167 }; | 159 }; |
| 168 | 160 |
| 169 /* Corresponds to NaClFileInfo in | 161 /* Corresponds to NaClFileInfo in |
| 170 * native_client/src/trusted/validator/nacl_file_info.h */ | 162 * native_client/src/trusted/validator/nacl_file_info.h */ |
| 171 struct PP_NaClFileInfo { | 163 struct PP_NaClFileInfo { |
| 172 PP_FileHandle handle; | 164 PP_FileHandle handle; |
| 173 | 165 |
| 174 /* See NaClFileToken comment in nacl_file_info.h */ | 166 /* See NaClFileToken comment in nacl_file_info.h */ |
| 175 uint64_t token_lo; | 167 uint64_t token_lo; |
| 176 uint64_t token_hi; | 168 uint64_t token_hi; |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 void ReportSelLdrStatus([in] PP_Instance instance, | 427 void ReportSelLdrStatus([in] PP_Instance instance, |
| 436 [in] int32_t load_status, | 428 [in] int32_t load_status, |
| 437 [in] int32_t max_status); | 429 [in] int32_t max_status); |
| 438 | 430 |
| 439 /* Logs time taken by an operation to UMA histograms. | 431 /* Logs time taken by an operation to UMA histograms. |
| 440 * This function is safe to call on any thread. | 432 * This function is safe to call on any thread. |
| 441 */ | 433 */ |
| 442 void LogTranslateTime([in] str_t histogram_name, | 434 void LogTranslateTime([in] str_t histogram_name, |
| 443 [in] int64_t time_us); | 435 [in] int64_t time_us); |
| 444 }; | 436 }; |
| OLD | NEW |