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

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

Issue 11787029: Remove the socket_count parameter from NaCl Launch IPC messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: socket_for_sel_ldr 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 Mon Jan 7 12:49:31 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 /** 55 /**
56 * @} 56 * @}
57 */ 57 */
58 58
59 /** 59 /**
60 * @addtogroup Interfaces 60 * @addtogroup Interfaces
61 * @{ 61 * @{
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
66 * |socket_count| nacl::Handles to imc_handles. Returns PP_NACL_FAILED on 66 * writes a nacl::Handle to imc_handle. Returns PP_NACL_FAILED on failure.
67 * failure. The |enable_ppapi_dev| parameter controls whether GetInterface 67 * 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 */ 72 */
73 PP_NaClResult (*LaunchSelLdr)(PP_Instance instance, 73 PP_NaClResult (*LaunchSelLdr)(PP_Instance instance,
74 const char* alleged_url, 74 const char* alleged_url,
75 PP_Bool uses_ppapi, 75 PP_Bool uses_ppapi,
76 PP_Bool enable_ppapi_dev, 76 PP_Bool enable_ppapi_dev,
77 int32_t socket_count, 77 void* imc_handle);
78 void* imc_handles);
79 /* This function starts the IPC proxy so the nexe can communicate with the 78 /* 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 79 * 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 80 * 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 81 * 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 82 * 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. 83 * initialized. PP_NACL_USE_SRPC is returned if the plugin should use SRPC.
85 */ 84 */
86 PP_NaClResult (*StartPpapiProxy)(PP_Instance instance); 85 PP_NaClResult (*StartPpapiProxy)(PP_Instance instance);
87 /* On POSIX systems, this function returns the file descriptor of 86 /* On POSIX systems, this function returns the file descriptor of
88 * /dev/urandom. On non-POSIX systems, this function returns 0. 87 * /dev/urandom. On non-POSIX systems, this function returns 0.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 PP_NaClError message_id); 128 PP_NaClError message_id);
130 }; 129 };
131 130
132 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; 131 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private;
133 /** 132 /**
134 * @} 133 * @}
135 */ 134 */
136 135
137 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ 136 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */
138 137
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