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 #ifndef COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_ | 5 #ifndef COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_ |
6 #define COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_ | 6 #define COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/process/process_handle.h" | 9 #include "base/process/process_handle.h" |
10 #include "ipc/ipc_sync_channel.h" | 10 #include "ipc/ipc_sync_channel.h" |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 */ | 221 */ |
222 void (*LaunchSelLdr)(PP_Instance instance, | 222 void (*LaunchSelLdr)(PP_Instance instance, |
223 PP_Bool main_service_runtime, | 223 PP_Bool main_service_runtime, |
224 const char* alleged_url, | 224 const char* alleged_url, |
225 const struct PP_NaClFileInfo* nexe_file_info, | 225 const struct PP_NaClFileInfo* nexe_file_info, |
226 PP_Bool uses_nonsfi_mode, | 226 PP_Bool uses_nonsfi_mode, |
227 PP_NaClAppProcessType process_type, | 227 PP_NaClAppProcessType process_type, |
228 scoped_ptr<IPC::SyncChannel>* translator_channel, | 228 scoped_ptr<IPC::SyncChannel>* translator_channel, |
229 base::ProcessId* process_id, | 229 base::ProcessId* process_id, |
230 struct PP_CompletionCallback callback); | 230 struct PP_CompletionCallback callback); |
231 /* On POSIX systems, this function returns the file descriptor of | |
232 * /dev/urandom. On non-POSIX systems, this function returns 0. | |
233 */ | |
234 int32_t (*UrandomFD)(void); | |
235 /* Returns a read-only (but executable) file descriptor / file info for | 231 /* Returns a read-only (but executable) file descriptor / file info for |
236 * a url for pnacl translator tools. Returns an invalid handle on failure. | 232 * a url for pnacl translator tools. Returns an invalid handle on failure. |
237 */ | 233 */ |
238 void (*GetReadExecPnaclFd)(const char* url, | 234 void (*GetReadExecPnaclFd)(const char* url, |
239 struct PP_NaClFileInfo* out_file_info); | 235 struct PP_NaClFileInfo* out_file_info); |
240 /* This creates a temporary file that will be deleted by the time | 236 /* This creates a temporary file that will be deleted by the time |
241 * the last handle is closed (or earlier on POSIX systems), and | 237 * the last handle is closed (or earlier on POSIX systems), and |
242 * returns a posix handle to that temporary file. | 238 * returns a posix handle to that temporary file. |
243 */ | 239 */ |
244 PP_FileHandle (*CreateTemporaryFile)(PP_Instance instance); | 240 PP_FileHandle (*CreateTemporaryFile)(PP_Instance instance); |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 int32_t opt_level, | 339 int32_t opt_level, |
344 PP_Bool use_subzero, | 340 PP_Bool use_subzero, |
345 const struct PPP_PexeStreamHandler_1_0* stream_handler, | 341 const struct PPP_PexeStreamHandler_1_0* stream_handler, |
346 void* stream_handler_user_data); | 342 void* stream_handler_user_data); |
347 }; | 343 }; |
348 /** | 344 /** |
349 * @} | 345 * @} |
350 */ | 346 */ |
351 | 347 |
352 #endif /* COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_ */ | 348 #endif /* COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_ */ |
OLD | NEW |