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. */ | 6 /* This file contains NaCl private interfaces. */ |
7 | 7 |
8 #inline c | 8 #inline c |
9 #include "ppapi/c/private/pp_file_handle.h" | 9 #include "ppapi/c/private/pp_file_handle.h" |
10 #endinl | 10 #endinl |
(...skipping 18 matching lines...) Expand all Loading... |
29 /** | 29 /** |
30 * The manifest program element does not contain a program usable on the | 30 * The manifest program element does not contain a program usable on the |
31 * user's architecture | 31 * user's architecture |
32 */ | 32 */ |
33 PP_NACL_MANIFEST_MISSING_ARCH = 0 | 33 PP_NACL_MANIFEST_MISSING_ARCH = 0 |
34 }; | 34 }; |
35 | 35 |
36 /* PPB_NaCl_Private */ | 36 /* PPB_NaCl_Private */ |
37 interface PPB_NaCl_Private { | 37 interface PPB_NaCl_Private { |
38 /* Launches NaCl's sel_ldr process. Returns PP_NACL_OK on success and | 38 /* Launches NaCl's sel_ldr process. Returns PP_NACL_OK on success and |
39 * writes a nacl::Handle to imc_handle. Returns PP_NACL_FAILED on failure. | 39 * writes a NaClHandle to imc_handle. Returns PP_NACL_FAILED on failure. |
40 * The |enable_ppapi_dev| parameter controls whether GetInterface | 40 * The |enable_ppapi_dev| parameter controls whether GetInterface |
41 * returns 'Dev' interfaces to the NaCl plugin. The |uses_ppapi| flag | 41 * returns 'Dev' interfaces to the NaCl plugin. The |uses_ppapi| flag |
42 * indicates that the nexe run by sel_ldr will use the PPAPI APIs. | 42 * indicates that the nexe run by sel_ldr will use the PPAPI APIs. |
43 * This implies that LaunchSelLdr is run from the main thread. If a nexe | 43 * This implies that LaunchSelLdr is run from the main thread. If a nexe |
44 * does not need PPAPI, then it can run off the main thread. | 44 * does not need PPAPI, then it can run off the main thread. |
45 * The |uses_irt| flag indicates whether the IRT should be loaded in this | 45 * The |uses_irt| flag indicates whether the IRT should be loaded in this |
46 * NaCl process. This is true for ABI stable nexes. | 46 * NaCl process. This is true for ABI stable nexes. |
47 */ | 47 */ |
48 PP_NaClResult LaunchSelLdr([in] PP_Instance instance, | 48 PP_NaClResult LaunchSelLdr([in] PP_Instance instance, |
49 [in] str_t alleged_url, | 49 [in] str_t alleged_url, |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 PP_Bool IsOffTheRecord(); | 106 PP_Bool IsOffTheRecord(); |
107 | 107 |
108 /* Return true if PNaCl is turned on. | 108 /* Return true if PNaCl is turned on. |
109 */ | 109 */ |
110 PP_Bool IsPnaclEnabled(); | 110 PP_Bool IsPnaclEnabled(); |
111 | 111 |
112 /* Display a UI message to the user. */ | 112 /* Display a UI message to the user. */ |
113 PP_NaClResult ReportNaClError([in] PP_Instance instance, | 113 PP_NaClResult ReportNaClError([in] PP_Instance instance, |
114 [in] PP_NaClError message_id); | 114 [in] PP_NaClError message_id); |
115 }; | 115 }; |
OLD | NEW |