| 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 Mon Feb 10 11:05:29 2014. */ | 6 /* From private/ppb_nacl_private.idl modified Thu Feb 13 15:50:26 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 uint32_t options); | 120 uint32_t options); |
| 121 /* Returns a read-only file descriptor of a file rooted in the Pnacl | 121 /* Returns a read-only file descriptor of a file rooted in the Pnacl |
| 122 * component directory, or an invalid handle on failure. | 122 * component directory, or an invalid handle on failure. |
| 123 */ | 123 */ |
| 124 PP_FileHandle (*GetReadonlyPnaclFd)(const char* filename); | 124 PP_FileHandle (*GetReadonlyPnaclFd)(const char* filename); |
| 125 /* This creates a temporary file that will be deleted by the time | 125 /* This creates a temporary file that will be deleted by the time |
| 126 * the last handle is closed (or earlier on POSIX systems), and | 126 * the last handle is closed (or earlier on POSIX systems), and |
| 127 * returns a posix handle to that temporary file. | 127 * returns a posix handle to that temporary file. |
| 128 */ | 128 */ |
| 129 PP_FileHandle (*CreateTemporaryFile)(PP_Instance instance); | 129 PP_FileHandle (*CreateTemporaryFile)(PP_Instance instance); |
| 130 /* Return the number of processors in the system as reported by the OS */ |
| 131 int32_t (*GetNumberOfProcessors)(void); |
| 130 /* Create a temporary file, which will be deleted by the time the | 132 /* Create a temporary file, which will be deleted by the time the |
| 131 * last handle is closed (or earlier on POSIX systems), to use for | 133 * last handle is closed (or earlier on POSIX systems), to use for |
| 132 * the nexe with the cache information given by |pexe_url|, | 134 * the nexe with the cache information given by |pexe_url|, |
| 133 * |abi_version|, |opt_level|, |last_modified|, |etag|, and | 135 * |abi_version|, |opt_level|, |last_modified|, |etag|, and |
| 134 * |has_no_store_header|. If the nexe is already present in the | 136 * |has_no_store_header|. If the nexe is already present in the |
| 135 * cache, |is_hit| is set to PP_TRUE and the contents of the nexe | 137 * cache, |is_hit| is set to PP_TRUE and the contents of the nexe |
| 136 * will be copied into the temporary file. Otherwise |is_hit| is set | 138 * will be copied into the temporary file. Otherwise |is_hit| is set |
| 137 * to PP_FALSE and the temporary file will be writeable. Currently | 139 * to PP_FALSE and the temporary file will be writeable. Currently |
| 138 * the implementation is a stub, which always sets is_hit to false | 140 * the implementation is a stub, which always sets is_hit to false |
| 139 * and calls the implementation of CreateTemporaryFile. In a | 141 * and calls the implementation of CreateTemporaryFile. In a |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 struct PP_Var value); | 191 struct PP_Var value); |
| 190 }; | 192 }; |
| 191 | 193 |
| 192 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; | 194 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; |
| 193 /** | 195 /** |
| 194 * @} | 196 * @} |
| 195 */ | 197 */ |
| 196 | 198 |
| 197 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ | 199 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ |
| 198 | 200 |
| OLD | NEW |