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 Mar 31 13:29:26 2014. */ | 6 /* From private/ppb_nacl_private.idl modified Wed Apr 2 10:41:10 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 uint64_t* file_token_hi); | 277 uint64_t* file_token_hi); |
278 /* Dispatch a progress event on the DOM element where the given instance is | 278 /* Dispatch a progress event on the DOM element where the given instance is |
279 * embedded. | 279 * embedded. |
280 */ | 280 */ |
281 void (*DispatchEvent)(PP_Instance instance, | 281 void (*DispatchEvent)(PP_Instance instance, |
282 PP_NaClEventType event_type, | 282 PP_NaClEventType event_type, |
283 const char* resource_url, | 283 const char* resource_url, |
284 PP_Bool length_is_computable, | 284 PP_Bool length_is_computable, |
285 uint64_t loaded_bytes, | 285 uint64_t loaded_bytes, |
286 uint64_t total_bytes); | 286 uint64_t total_bytes); |
287 /* Sets a read-only property on the <embed> DOM element that corresponds to | |
288 * the given instance. | |
289 */ | |
290 void (*SetReadOnlyProperty)(PP_Instance instance, | |
291 struct PP_Var key, | |
292 struct PP_Var value); | |
293 /* Report that the nexe loaded successfully. */ | 287 /* Report that the nexe loaded successfully. */ |
294 void (*ReportLoadSuccess)(PP_Instance instance, | 288 void (*ReportLoadSuccess)(PP_Instance instance, |
295 const char* url, | 289 const char* url, |
296 uint64_t loaded_bytes, | 290 uint64_t loaded_bytes, |
297 uint64_t total_bytes); | 291 uint64_t total_bytes); |
298 /* Report an error that occured while attempting to load a nexe. */ | 292 /* Report an error that occured while attempting to load a nexe. */ |
299 void (*ReportLoadError)(PP_Instance instance, | 293 void (*ReportLoadError)(PP_Instance instance, |
300 PP_NaClError error, | 294 PP_NaClError error, |
301 const char* error_message, | 295 const char* error_message, |
302 const char* console_message); | 296 const char* console_message); |
(...skipping 25 matching lines...) Expand all Loading... |
328 void (*SetNaClReadyState)(PP_Instance instance, | 322 void (*SetNaClReadyState)(PP_Instance instance, |
329 PP_NaClReadyState ready_state); | 323 PP_NaClReadyState ready_state); |
330 /* Returns true if the plugin is an installed app. */ | 324 /* Returns true if the plugin is an installed app. */ |
331 PP_Bool (*GetIsInstalled)(PP_Instance instance); | 325 PP_Bool (*GetIsInstalled)(PP_Instance instance); |
332 /* Sets whether the plugin is an installed app. */ | 326 /* Sets whether the plugin is an installed app. */ |
333 void (*SetIsInstalled)(PP_Instance instance, PP_Bool is_installed); | 327 void (*SetIsInstalled)(PP_Instance instance, PP_Bool is_installed); |
334 /* Returns the time the nexe became ready. */ | 328 /* Returns the time the nexe became ready. */ |
335 int64_t (*GetReadyTime)(PP_Instance instance); | 329 int64_t (*GetReadyTime)(PP_Instance instance); |
336 /* Sets the time the nexe became ready. */ | 330 /* Sets the time the nexe became ready. */ |
337 void (*SetReadyTime)(PP_Instance instance, int64_t ready_time); | 331 void (*SetReadyTime)(PP_Instance instance, int64_t ready_time); |
| 332 /* Returns the exit status of the plugin process. */ |
| 333 int32_t (*GetExitStatus)(PP_Instance instance); |
| 334 /* Sets the exit status of the plugin process. */ |
| 335 void (*SetExitStatus)(PP_Instance instance, int32_t exit_status); |
338 }; | 336 }; |
339 | 337 |
340 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; | 338 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; |
341 /** | 339 /** |
342 * @} | 340 * @} |
343 */ | 341 */ |
344 | 342 |
345 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ | 343 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ |
346 | 344 |
OLD | NEW |