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 Wed Jun 25 11:40:03 2014. */ | 6 /* From private/ppb_nacl_private.idl modified Thu Jun 26 09:39:48 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 * use inside the Windows sandbox. Note that we provide this via dependency | 278 * use inside the Windows sandbox. Note that we provide this via dependency |
279 * injection only to avoid the linkage problems that occur because the NaCl | 279 * injection only to avoid the linkage problems that occur because the NaCl |
280 * plugin is built as a separate DLL/DSO | 280 * plugin is built as a separate DLL/DSO |
281 * (see http://code.google.com/p/chromium/issues/detail?id=114439#c8). | 281 * (see http://code.google.com/p/chromium/issues/detail?id=114439#c8). |
282 */ | 282 */ |
283 int32_t (*BrokerDuplicateHandle)(PP_FileHandle source_handle, | 283 int32_t (*BrokerDuplicateHandle)(PP_FileHandle source_handle, |
284 uint32_t process_id, | 284 uint32_t process_id, |
285 PP_FileHandle* target_handle, | 285 PP_FileHandle* target_handle, |
286 uint32_t desired_access, | 286 uint32_t desired_access, |
287 uint32_t options); | 287 uint32_t options); |
288 /* Returns a read-only file descriptor for a url for pnacl translator tools, | 288 /* Returns a read-only (but executable) file descriptor / file info for |
289 * or an invalid handle on failure. | 289 * a url for pnacl translator tools. Returns an invalid handle on failure. |
290 */ | 290 */ |
291 PP_FileHandle (*GetReadonlyPnaclFd)(const char* url); | 291 void (*GetReadExecPnaclFd)(const char* url, |
| 292 struct PP_NaClFileInfo* out_file_info); |
292 /* This creates a temporary file that will be deleted by the time | 293 /* This creates a temporary file that will be deleted by the time |
293 * the last handle is closed (or earlier on POSIX systems), and | 294 * the last handle is closed (or earlier on POSIX systems), and |
294 * returns a posix handle to that temporary file. | 295 * returns a posix handle to that temporary file. |
295 */ | 296 */ |
296 PP_FileHandle (*CreateTemporaryFile)(PP_Instance instance); | 297 PP_FileHandle (*CreateTemporaryFile)(PP_Instance instance); |
297 /* Return the number of processors in the system as reported by the OS */ | 298 /* Return the number of processors in the system as reported by the OS */ |
298 int32_t (*GetNumberOfProcessors)(void); | 299 int32_t (*GetNumberOfProcessors)(void); |
299 /* Return whether the non-SFI mode is enabled. */ | 300 /* Return whether the non-SFI mode is enabled. */ |
300 PP_Bool (*IsNonSFIModeEnabled)(void); | 301 PP_Bool (*IsNonSFIModeEnabled)(void); |
301 /* Create a temporary file, which will be deleted by the time the | 302 /* Create a temporary file, which will be deleted by the time the |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 struct PP_CompletionCallback callback); | 448 struct PP_CompletionCallback callback); |
448 }; | 449 }; |
449 | 450 |
450 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; | 451 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; |
451 /** | 452 /** |
452 * @} | 453 * @} |
453 */ | 454 */ |
454 | 455 |
455 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ | 456 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ |
456 | 457 |
OLD | NEW |