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 /* From private/ppb_nacl_private.idl modified Mon Apr 7 13:43:24 2014. */ | 6 /* From private/ppb_nacl_private.idl modified Wed Apr 9 10:26:49 2014. */ |
7 | 7 |
8 #ifndef PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ | 8 #ifndef PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ |
9 #define PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ | 9 #define PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ |
10 | 10 |
11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
12 #include "ppapi/c/pp_completion_callback.h" | 12 #include "ppapi/c/pp_completion_callback.h" |
13 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
14 #include "ppapi/c/pp_macros.h" | 14 #include "ppapi/c/pp_macros.h" |
15 #include "ppapi/c/pp_stdint.h" | 15 #include "ppapi/c/pp_stdint.h" |
16 #include "ppapi/c/pp_var.h" | 16 #include "ppapi/c/pp_var.h" |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 uint64_t* file_token_hi); | 271 uint64_t* file_token_hi); |
272 /* Dispatch a progress event on the DOM element where the given instance is | 272 /* Dispatch a progress event on the DOM element where the given instance is |
273 * embedded. | 273 * embedded. |
274 */ | 274 */ |
275 void (*DispatchEvent)(PP_Instance instance, | 275 void (*DispatchEvent)(PP_Instance instance, |
276 PP_NaClEventType event_type, | 276 PP_NaClEventType event_type, |
277 const char* resource_url, | 277 const char* resource_url, |
278 PP_Bool length_is_computable, | 278 PP_Bool length_is_computable, |
279 uint64_t loaded_bytes, | 279 uint64_t loaded_bytes, |
280 uint64_t total_bytes); | 280 uint64_t total_bytes); |
| 281 /* Report that the attempt to open the nexe has finished. Opening the file |
| 282 * may have failed, as indicated by a pp_error value that is not PP_OK or an |
| 283 * fd of -1. Failure to stat the file to determine its length results in |
| 284 * nexe_bytes_read being -1. |
| 285 */ |
| 286 void (*NexeFileDidOpen)(PP_Instance instance, |
| 287 int32_t pp_error, |
| 288 int32_t fd, |
| 289 int32_t http_status, |
| 290 int64_t nexe_bytes_read, |
| 291 const char* url); |
281 /* Report that the nexe loaded successfully. */ | 292 /* Report that the nexe loaded successfully. */ |
282 void (*ReportLoadSuccess)(PP_Instance instance, | 293 void (*ReportLoadSuccess)(PP_Instance instance, |
283 const char* url, | 294 const char* url, |
284 uint64_t loaded_bytes, | 295 uint64_t loaded_bytes, |
285 uint64_t total_bytes); | 296 uint64_t total_bytes); |
286 /* Report an error that occured while attempting to load a nexe. */ | 297 /* Report an error that occured while attempting to load a nexe. */ |
287 void (*ReportLoadError)(PP_Instance instance, | 298 void (*ReportLoadError)(PP_Instance instance, |
288 PP_NaClError error, | 299 PP_NaClError error, |
289 const char* error_message, | 300 const char* error_message, |
290 const char* console_message); | 301 const char* console_message); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 void (*SetNexeSize)(PP_Instance instance, int64_t nexe_size); | 344 void (*SetNexeSize)(PP_Instance instance, int64_t nexe_size); |
334 }; | 345 }; |
335 | 346 |
336 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; | 347 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; |
337 /** | 348 /** |
338 * @} | 349 * @} |
339 */ | 350 */ |
340 | 351 |
341 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ | 352 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ |
342 | 353 |
OLD | NEW |