| 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 Tue Apr 15 14:43:25 2014. */ | 6 /* From private/ppb_nacl_private.idl modified Tue Apr 15 14:43:25 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 |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 * plugin is built as a separate DLL/DSO | 220 * plugin is built as a separate DLL/DSO |
| 221 * (see http://code.google.com/p/chromium/issues/detail?id=114439#c8). | 221 * (see http://code.google.com/p/chromium/issues/detail?id=114439#c8). |
| 222 */ | 222 */ |
| 223 int32_t (*BrokerDuplicateHandle)(PP_FileHandle source_handle, | 223 int32_t (*BrokerDuplicateHandle)(PP_FileHandle source_handle, |
| 224 uint32_t process_id, | 224 uint32_t process_id, |
| 225 PP_FileHandle* target_handle, | 225 PP_FileHandle* target_handle, |
| 226 uint32_t desired_access, | 226 uint32_t desired_access, |
| 227 uint32_t options); | 227 uint32_t options); |
| 228 /* Returns a read-only file descriptor of a file rooted in the Pnacl | 228 /* Returns a read-only file descriptor of a file rooted in the Pnacl |
| 229 * component directory, or an invalid handle on failure. | 229 * component directory, or an invalid handle on failure. |
| 230 * The metadata |file_token_*| are 0 on failure. |
| 230 */ | 231 */ |
| 231 PP_FileHandle (*GetReadonlyPnaclFd)(const char* filename); | 232 PP_FileHandle (*GetReadonlyPnaclFd)(const char* filename, |
| 233 PP_Bool is_executable, |
| 234 uint64_t* file_token_lo, |
| 235 uint64_t* file_token_hi); |
| 232 /* 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 |
| 233 * the last handle is closed (or earlier on POSIX systems), and | 237 * the last handle is closed (or earlier on POSIX systems), and |
| 234 * returns a posix handle to that temporary file. | 238 * returns a posix handle to that temporary file. |
| 235 */ | 239 */ |
| 236 PP_FileHandle (*CreateTemporaryFile)(PP_Instance instance); | 240 PP_FileHandle (*CreateTemporaryFile)(PP_Instance instance); |
| 237 /* Return the number of processors in the system as reported by the OS */ | 241 /* Return the number of processors in the system as reported by the OS */ |
| 238 int32_t (*GetNumberOfProcessors)(void); | 242 int32_t (*GetNumberOfProcessors)(void); |
| 239 /* Return whether the non-SFI mode is enabled. */ | 243 /* Return whether the non-SFI mode is enabled. */ |
| 240 PP_Bool (*IsNonSFIModeEnabled)(void); | 244 PP_Bool (*IsNonSFIModeEnabled)(void); |
| 241 /* Create a temporary file, which will be deleted by the time the | 245 /* Create a temporary file, which will be deleted by the time the |
| (...skipping 22 matching lines...) Expand all Loading... |
| 264 * browser may then store the translation in the cache. The renderer | 268 * browser may then store the translation in the cache. The renderer |
| 265 * must first have called GetNexeFd for the same instance. (The browser is | 269 * must first have called GetNexeFd for the same instance. (The browser is |
| 266 * not guaranteed to store the nexe even if |success| is true; if there is | 270 * not guaranteed to store the nexe even if |success| is true; if there is |
| 267 * an error on the browser side, or the file is too big for the cache, or | 271 * an error on the browser side, or the file is too big for the cache, or |
| 268 * the browser is in incognito mode, no notification will be delivered to | 272 * the browser is in incognito mode, no notification will be delivered to |
| 269 * the plugin.) | 273 * the plugin.) |
| 270 */ | 274 */ |
| 271 void (*ReportTranslationFinished)(PP_Instance instance, PP_Bool success); | 275 void (*ReportTranslationFinished)(PP_Instance instance, PP_Bool success); |
| 272 /* Opens a NaCl executable file in the application's extension directory | 276 /* Opens a NaCl executable file in the application's extension directory |
| 273 * corresponding to the file URL and returns a file descriptor, or an invalid | 277 * corresponding to the file URL and returns a file descriptor, or an invalid |
| 274 * handle on failure. |metadata| is left unchanged on failure. | 278 * handle on failure. The metadata |file_token*| are 0 on failure. |
| 275 */ | 279 */ |
| 276 PP_FileHandle (*OpenNaClExecutable)(PP_Instance instance, | 280 PP_FileHandle (*OpenNaClExecutable)(PP_Instance instance, |
| 277 const char* file_url, | 281 const char* file_url, |
| 278 uint64_t* file_token_lo, | 282 uint64_t* file_token_lo, |
| 279 uint64_t* file_token_hi); | 283 uint64_t* file_token_hi); |
| 280 /* Dispatch a progress event on the DOM element where the given instance is | 284 /* Dispatch a progress event on the DOM element where the given instance is |
| 281 * embedded. | 285 * embedded. |
| 282 */ | 286 */ |
| 283 void (*DispatchEvent)(PP_Instance instance, | 287 void (*DispatchEvent)(PP_Instance instance, |
| 284 PP_NaClEventType event_type, | 288 PP_NaClEventType event_type, |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 void (*SetNexeSize)(PP_Instance instance, int64_t nexe_size); | 356 void (*SetNexeSize)(PP_Instance instance, int64_t nexe_size); |
| 353 }; | 357 }; |
| 354 | 358 |
| 355 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; | 359 typedef struct PPB_NaCl_Private_1_0 PPB_NaCl_Private; |
| 356 /** | 360 /** |
| 357 * @} | 361 * @} |
| 358 */ | 362 */ |
| 359 | 363 |
| 360 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ | 364 #endif /* PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ */ |
| 361 | 365 |
| OLD | NEW |