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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 /* Dispatch a progress event on the DOM element where the given instance is | 269 /* Dispatch a progress event on the DOM element where the given instance is |
270 * embedded. | 270 * embedded. |
271 */ | 271 */ |
272 void DispatchEvent([in] PP_Instance instance, | 272 void DispatchEvent([in] PP_Instance instance, |
273 [in] PP_NaClEventType event_type, | 273 [in] PP_NaClEventType event_type, |
274 [in] str_t resource_url, | 274 [in] str_t resource_url, |
275 [in] PP_Bool length_is_computable, | 275 [in] PP_Bool length_is_computable, |
276 [in] uint64_t loaded_bytes, | 276 [in] uint64_t loaded_bytes, |
277 [in] uint64_t total_bytes); | 277 [in] uint64_t total_bytes); |
278 | 278 |
279 /* Sets a read-only property on the <embed> DOM element that corresponds to | |
280 * the given instance. | |
281 */ | |
282 void SetReadOnlyProperty([in] PP_Instance instance, | |
283 [in] PP_Var key, | |
284 [in] PP_Var value); | |
285 | |
286 /* Report that the nexe loaded successfully. */ | 279 /* Report that the nexe loaded successfully. */ |
287 void ReportLoadSuccess([in] PP_Instance instance, | 280 void ReportLoadSuccess([in] PP_Instance instance, |
288 [in] str_t url, | 281 [in] str_t url, |
289 [in] uint64_t loaded_bytes, | 282 [in] uint64_t loaded_bytes, |
290 [in] uint64_t total_bytes); | 283 [in] uint64_t total_bytes); |
291 | 284 |
292 /* Report an error that occured while attempting to load a nexe. */ | 285 /* Report an error that occured while attempting to load a nexe. */ |
293 void ReportLoadError([in] PP_Instance instance, | 286 void ReportLoadError([in] PP_Instance instance, |
294 [in] PP_NaClError error, | 287 [in] PP_NaClError error, |
295 [in] str_t error_message, | 288 [in] str_t error_message, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 /* Sets whether the plugin is an installed app. */ | 334 /* Sets whether the plugin is an installed app. */ |
342 void SetIsInstalled([in] PP_Instance instance, | 335 void SetIsInstalled([in] PP_Instance instance, |
343 [in] PP_Bool is_installed); | 336 [in] PP_Bool is_installed); |
344 | 337 |
345 /* Returns the time the nexe became ready. */ | 338 /* Returns the time the nexe became ready. */ |
346 int64_t GetReadyTime([in] PP_Instance instance); | 339 int64_t GetReadyTime([in] PP_Instance instance); |
347 | 340 |
348 /* Sets the time the nexe became ready. */ | 341 /* Sets the time the nexe became ready. */ |
349 void SetReadyTime([in] PP_Instance instance, | 342 void SetReadyTime([in] PP_Instance instance, |
350 [in] int64_t ready_time); | 343 [in] int64_t ready_time); |
| 344 |
| 345 /* Returns the exit status of the plugin process. */ |
| 346 int32_t GetExitStatus([in] PP_Instance instance); |
| 347 |
| 348 /* Sets the exit status of the plugin process. */ |
| 349 void SetExitStatus([in] PP_Instance instance, |
| 350 [in] int32_t exit_status); |
351 }; | 351 }; |
OLD | NEW |