| 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); |
| 231 /* Returns a read-only (but executable) file descriptor / file info for | 235 /* Returns a read-only (but executable) file descriptor / file info for |
| 232 * a url for pnacl translator tools. Returns an invalid handle on failure. | 236 * a url for pnacl translator tools. Returns an invalid handle on failure. |
| 233 */ | 237 */ |
| 234 void (*GetReadExecPnaclFd)(const char* url, | 238 void (*GetReadExecPnaclFd)(const char* url, |
| 235 struct PP_NaClFileInfo* out_file_info); | 239 struct PP_NaClFileInfo* out_file_info); |
| 236 /* This creates a temporary file that will be deleted by the time | 240 /* This creates a temporary file that will be deleted by the time |
| 237 * the last handle is closed (or earlier on POSIX systems), and | 241 * the last handle is closed (or earlier on POSIX systems), and |
| 238 * returns a posix handle to that temporary file. | 242 * returns a posix handle to that temporary file. |
| 239 */ | 243 */ |
| 240 PP_FileHandle (*CreateTemporaryFile)(PP_Instance instance); | 244 PP_FileHandle (*CreateTemporaryFile)(PP_Instance instance); |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 int32_t opt_level, | 343 int32_t opt_level, |
| 340 PP_Bool use_subzero, | 344 PP_Bool use_subzero, |
| 341 const struct PPP_PexeStreamHandler_1_0* stream_handler, | 345 const struct PPP_PexeStreamHandler_1_0* stream_handler, |
| 342 void* stream_handler_user_data); | 346 void* stream_handler_user_data); |
| 343 }; | 347 }; |
| 344 /** | 348 /** |
| 345 * @} | 349 * @} |
| 346 */ | 350 */ |
| 347 | 351 |
| 348 #endif /* COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_ */ | 352 #endif /* COMPONENTS_NACL_RENDERER_PPB_NACL_PRIVATE_H_ */ |
| OLD | NEW |