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

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

Issue 11428063: Add a flag to LaunchSelLdr to skip grabbing a routing_id. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reduce mod Created 8 years 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 Tue Nov 20 08:49:26 2012. */ 6 /* From private/ppb_nacl_private.idl modified Thu Nov 29 15:01:09 2012. */
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 /** 50 /**
51 * @addtogroup Interfaces 51 * @addtogroup Interfaces
52 * @{ 52 * @{
53 */ 53 */
54 /* PPB_NaCl_Private */ 54 /* PPB_NaCl_Private */
55 struct PPB_NaCl_Private_1_0 { 55 struct PPB_NaCl_Private_1_0 {
56 /* Launches NaCl's sel_ldr process. Returns PP_NACL_OK on success and writes 56 /* Launches NaCl's sel_ldr process. Returns PP_NACL_OK on success and writes
57 * |socket_count| nacl::Handles to imc_handles. Returns PP_NACL_FAILED on 57 * |socket_count| nacl::Handles to imc_handles. Returns PP_NACL_FAILED on
58 * failure. The |enable_ppapi_dev| parameter controls whether GetInterface 58 * failure. The |enable_ppapi_dev| parameter controls whether GetInterface
59 * returns 'Dev' interfaces to the NaCl plugin. 59 * returns 'Dev' interfaces to the NaCl plugin. The |uses_ppapi| flag
60 * indicates that the nexe run by sel_ldr will use the PPAPI APIs.
61 * This implies that LaunchSelLdr is run from the main thread. If a nexe
62 * does not need PPAPI, then it can run off the main thread.
60 */ 63 */
61 PP_NaClResult (*LaunchSelLdr)(PP_Instance instance, 64 PP_NaClResult (*LaunchSelLdr)(PP_Instance instance,
62 const char* alleged_url, 65 const char* alleged_url,
66 PP_Bool uses_ppapi,
63 PP_Bool enable_ppapi_dev, 67 PP_Bool enable_ppapi_dev,
64 int32_t socket_count, 68 int32_t socket_count,
65 void* imc_handles); 69 void* imc_handles);
66 /* This function starts the IPC proxy so the nexe can communicate with the 70 /* This function starts the IPC proxy so the nexe can communicate with the
67 * browser. Returns PP_NACL_OK on success, otherwise a result code indicating 71 * browser. Returns PP_NACL_OK on success, otherwise a result code indicating
68 * the failure. PP_NACL_FAILED is returned if LaunchSelLdr wasn't called with 72 * the failure. PP_NACL_FAILED is returned if LaunchSelLdr wasn't called with
69 * the instance. PP_NACL_ERROR_MODULE is returned if the module can't be 73 * the instance. PP_NACL_ERROR_MODULE is returned if the module can't be
70 * initialized. PP_NACL_ERROR_INSTANCE is returned if the instance can't be 74 * initialized. PP_NACL_ERROR_INSTANCE is returned if the instance can't be
71 * initialized. PP_NACL_USE_SRPC is returned if the plugin should use SRPC. 75 * initialized. PP_NACL_USE_SRPC is returned if the plugin should use SRPC.
72 */ 76 */
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 PP_Bool (*IsPnaclEnabled)(void); 117 PP_Bool (*IsPnaclEnabled)(void);
114 }; 118 };
115 119
116 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; 120 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private;
117 /** 121 /**
118 * @} 122 * @}
119 */ 123 */
120 124
121 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ 125 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */
122 126
OLDNEW
« no previous file with comments | « ppapi/api/private/ppb_nacl_private.idl ('k') | ppapi/native_client/src/trusted/plugin/nacl_entry_points.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698