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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 */ | 294 */ |
295 str_t GetSandboxArch(); | 295 str_t GetSandboxArch(); |
296 | 296 |
297 /* Logs the message to the console. */ | 297 /* Logs the message to the console. */ |
298 void LogToConsole([in] PP_Instance instance, | 298 void LogToConsole([in] PP_Instance instance, |
299 [in] str_t message); | 299 [in] str_t message); |
300 | 300 |
301 /* Returns the NaCl readiness status for this instance. */ | 301 /* Returns the NaCl readiness status for this instance. */ |
302 PP_NaClReadyState GetNaClReadyState([in] PP_Instance instance); | 302 PP_NaClReadyState GetNaClReadyState([in] PP_Instance instance); |
303 | 303 |
304 /* Returns the exit status of the plugin process. */ | |
305 int32_t GetExitStatus([in] PP_Instance instance); | |
306 | |
307 /* Sets the exit status of the plugin process. */ | |
308 void SetExitStatus([in] PP_Instance instance, | |
309 [in] int32_t exit_status); | |
310 | |
311 /* Logs the message via VLOG. */ | 304 /* Logs the message via VLOG. */ |
312 void Vlog([in] str_t message); | 305 void Vlog([in] str_t message); |
313 | 306 |
314 /* Initializes internal state for a NaCl plugin. */ | 307 /* Initializes internal state for a NaCl plugin. */ |
315 void InitializePlugin([in] PP_Instance instance, | 308 void InitializePlugin([in] PP_Instance instance, |
316 [in] uint32_t argc, | 309 [in] uint32_t argc, |
317 [in, size_as=argc] str_t[] argn, | 310 [in, size_as=argc] str_t[] argn, |
318 [in, size_as=argv] str_t[] argv); | 311 [in, size_as=argv] str_t[] argv); |
319 | 312 |
320 /* Returns the size of the nexe. */ | 313 /* Returns the size of the nexe. */ |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 * Otherwise, |stream_callback| is called repeatedly with blocks of data | 397 * Otherwise, |stream_callback| is called repeatedly with blocks of data |
405 * as they are received. |stream_finished_callback| is called after all | 398 * as they are received. |stream_finished_callback| is called after all |
406 * data has been received and dispatched to |stream_callback|. | 399 * data has been received and dispatched to |stream_callback|. |
407 */ | 400 */ |
408 void StreamPexe([in] PP_Instance instance, | 401 void StreamPexe([in] PP_Instance instance, |
409 [in] str_t pexe_url, | 402 [in] str_t pexe_url, |
410 [in] int32_t opt_level, | 403 [in] int32_t opt_level, |
411 [in] PPP_PexeStreamHandler stream_handler, | 404 [in] PPP_PexeStreamHandler stream_handler, |
412 [inout] mem_t stream_handler_user_data); | 405 [inout] mem_t stream_handler_user_data); |
413 }; | 406 }; |
OLD | NEW |