Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: ppapi/c/private/ppb_nacl_private.h

Issue 11761025: When launching PNaCl helper nexes, explicitly disable IRT loading. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 Thu Dec 13 13:40:29 2012. */ 6 /* From private/ppb_nacl_private.idl modified Thu Jan 3 12:40:35 2013. */
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_instance.h" 12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/c/pp_macros.h" 13 #include "ppapi/c/pp_macros.h"
14 #include "ppapi/c/pp_stdint.h" 14 #include "ppapi/c/pp_stdint.h"
15 15
16 #define PPB_NACL_PRIVATE_INTERFACE_1_0 "PPB_NaCl_Private;1.0" 16 #define PPB_NACL_PRIVATE_INTERFACE_1_0 "PPB_NaCl_Private;1.0"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 */ 62 */
63 /* PPB_NaCl_Private */ 63 /* PPB_NaCl_Private */
64 struct PPB_NaCl_Private_1_0 { 64 struct PPB_NaCl_Private_1_0 {
65 /* Launches NaCl's sel_ldr process. Returns PP_NACL_OK on success and writes 65 /* Launches NaCl's sel_ldr process. Returns PP_NACL_OK on success and writes
66 * |socket_count| nacl::Handles to imc_handles. Returns PP_NACL_FAILED on 66 * |socket_count| nacl::Handles to imc_handles. Returns PP_NACL_FAILED on
67 * failure. The |enable_ppapi_dev| parameter controls whether GetInterface 67 * failure. The |enable_ppapi_dev| parameter controls whether GetInterface
68 * returns 'Dev' interfaces to the NaCl plugin. The |uses_ppapi| flag 68 * returns 'Dev' interfaces to the NaCl plugin. The |uses_ppapi| flag
69 * indicates that the nexe run by sel_ldr will use the PPAPI APIs. 69 * indicates that the nexe run by sel_ldr will use the PPAPI APIs.
70 * This implies that LaunchSelLdr is run from the main thread. If a nexe 70 * This implies that LaunchSelLdr is run from the main thread. If a nexe
71 * does not need PPAPI, then it can run off the main thread. 71 * does not need PPAPI, then it can run off the main thread.
72 * The |uses_irt| flag indicates if a nexe depends on the IRT or not.
73 * This is true for ABI stable nexes.
72 */ 74 */
73 PP_NaClResult (*LaunchSelLdr)(PP_Instance instance, 75 PP_NaClResult (*LaunchSelLdr)(PP_Instance instance,
74 const char* alleged_url, 76 const char* alleged_url,
75 PP_Bool uses_ppapi, 77 PP_Bool uses_ppapi,
76 PP_Bool enable_ppapi_dev, 78 PP_Bool enable_ppapi_dev,
77 int32_t socket_count, 79 int32_t socket_count,
80 PP_Bool uses_irt,
78 void* imc_handles); 81 void* imc_handles);
79 /* This function starts the IPC proxy so the nexe can communicate with the 82 /* This function starts the IPC proxy so the nexe can communicate with the
80 * browser. Returns PP_NACL_OK on success, otherwise a result code indicating 83 * browser. Returns PP_NACL_OK on success, otherwise a result code indicating
81 * the failure. PP_NACL_FAILED is returned if LaunchSelLdr wasn't called with 84 * the failure. PP_NACL_FAILED is returned if LaunchSelLdr wasn't called with
82 * the instance. PP_NACL_ERROR_MODULE is returned if the module can't be 85 * the instance. PP_NACL_ERROR_MODULE is returned if the module can't be
83 * initialized. PP_NACL_ERROR_INSTANCE is returned if the instance can't be 86 * initialized. PP_NACL_ERROR_INSTANCE is returned if the instance can't be
84 * initialized. PP_NACL_USE_SRPC is returned if the plugin should use SRPC. 87 * initialized. PP_NACL_USE_SRPC is returned if the plugin should use SRPC.
85 */ 88 */
86 PP_NaClResult (*StartPpapiProxy)(PP_Instance instance); 89 PP_NaClResult (*StartPpapiProxy)(PP_Instance instance);
87 /* On POSIX systems, this function returns the file descriptor of 90 /* On POSIX systems, this function returns the file descriptor of
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 PP_NaClError message_id); 132 PP_NaClError message_id);
130 }; 133 };
131 134
132 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; 135 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private;
133 /** 136 /**
134 * @} 137 * @}
135 */ 138 */
136 139
137 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ 140 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */
138 141
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698