| 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 | 5 |
| 6 /* From private/ppb_nacl_private.idl modified Thu Jun 26 14:23:46 2014. */ | 6 /* From private/ppb_nacl_private.idl modified Fri Jun 27 15:10:18 2014. */ |
| 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_completion_callback.h" | 12 #include "ppapi/c/pp_completion_callback.h" |
| 13 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
| 14 #include "ppapi/c/pp_macros.h" | 14 #include "ppapi/c/pp_macros.h" |
| 15 #include "ppapi/c/pp_stdint.h" | 15 #include "ppapi/c/pp_stdint.h" |
| 16 #include "ppapi/c/pp_var.h" | 16 #include "ppapi/c/pp_var.h" |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 * use inside the Windows sandbox. Note that we provide this via dependency | 249 * use inside the Windows sandbox. Note that we provide this via dependency |
| 250 * injection only to avoid the linkage problems that occur because the NaCl | 250 * injection only to avoid the linkage problems that occur because the NaCl |
| 251 * plugin is built as a separate DLL/DSO | 251 * plugin is built as a separate DLL/DSO |
| 252 * (see http://code.google.com/p/chromium/issues/detail?id=114439#c8). | 252 * (see http://code.google.com/p/chromium/issues/detail?id=114439#c8). |
| 253 */ | 253 */ |
| 254 int32_t (*BrokerDuplicateHandle)(PP_FileHandle source_handle, | 254 int32_t (*BrokerDuplicateHandle)(PP_FileHandle source_handle, |
| 255 uint32_t process_id, | 255 uint32_t process_id, |
| 256 PP_FileHandle* target_handle, | 256 PP_FileHandle* target_handle, |
| 257 uint32_t desired_access, | 257 uint32_t desired_access, |
| 258 uint32_t options); | 258 uint32_t options); |
| 259 /* Returns a read-only file descriptor for a url for pnacl translator tools, | 259 /* Returns a read-only (but executable) file descriptor / file info for |
| 260 * or an invalid handle on failure. | 260 * a url for pnacl translator tools. Returns an invalid handle on failure. |
| 261 */ | 261 */ |
| 262 PP_FileHandle (*GetReadonlyPnaclFd)(const char* url); | 262 void (*GetReadExecPnaclFd)(const char* url, |
| 263 struct PP_NaClFileInfo* out_file_info); |
| 263 /* This creates a temporary file that will be deleted by the time | 264 /* This creates a temporary file that will be deleted by the time |
| 264 * the last handle is closed (or earlier on POSIX systems), and | 265 * the last handle is closed (or earlier on POSIX systems), and |
| 265 * returns a posix handle to that temporary file. | 266 * returns a posix handle to that temporary file. |
| 266 */ | 267 */ |
| 267 PP_FileHandle (*CreateTemporaryFile)(PP_Instance instance); | 268 PP_FileHandle (*CreateTemporaryFile)(PP_Instance instance); |
| 268 /* Return the number of processors in the system as reported by the OS */ | 269 /* Return the number of processors in the system as reported by the OS */ |
| 269 int32_t (*GetNumberOfProcessors)(void); | 270 int32_t (*GetNumberOfProcessors)(void); |
| 270 /* Return whether the non-SFI mode is enabled. */ | 271 /* Return whether the non-SFI mode is enabled. */ |
| 271 PP_Bool (*IsNonSFIModeEnabled)(void); | 272 PP_Bool (*IsNonSFIModeEnabled)(void); |
| 272 /* Create a temporary file, which will be deleted by the time the | 273 /* Create a temporary file, which will be deleted by the time the |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 void (*SetPNaClStartTime)(PP_Instance instance); | 422 void (*SetPNaClStartTime)(PP_Instance instance); |
| 422 }; | 423 }; |
| 423 | 424 |
| 424 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; | 425 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; |
| 425 /** | 426 /** |
| 426 * @} | 427 * @} |
| 427 */ | 428 */ |
| 428 | 429 |
| 429 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ | 430 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ |
| 430 | 431 |
| OLD | NEW |