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 PPAPI_C_PRIVATE_PPB_NACL_UTIL_PRIVATE_H_ | 5 #ifndef PPAPI_C_PRIVATE_PPB_NACL_UTIL_PRIVATE_H_ |
6 #define PPAPI_C_PRIVATE_PPB_NACL_UTIL_PRIVATE_H_ | 6 #define PPAPI_C_PRIVATE_PPB_NACL_UTIL_PRIVATE_H_ |
7 | 7 |
8 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" |
9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
10 #include "ppapi/c/pp_resource.h" | 10 #include "ppapi/c/pp_resource.h" |
11 #include "ppapi/c/pp_stdint.h" | 11 #include "ppapi/c/pp_stdint.h" |
12 | 12 |
13 #define PPB_NACL_PRIVATE_INTERFACE "PPB_NaCl(Private);0.5" | 13 #define PPB_NACL_PRIVATE_INTERFACE "PPB_NaCl(Private);0.5" |
brettw
2012/07/12 19:55:16
Can you also update the version number here?
jvoung (off chromium)
2012/07/12 23:06:09
Done.
| |
14 | 14 |
15 struct PPB_NaCl_Private { | 15 struct PPB_NaCl_Private { |
16 // This function launches NaCl's sel_ldr process. On success, the function | 16 // This function launches NaCl's sel_ldr process. On success, the function |
17 // returns true, otherwise it returns false. When it returns true, it will | 17 // returns true, otherwise it returns false. When it returns true, it will |
18 // write |socket_count| nacl::Handles to imc_handles. Unless | 18 // write |socket_count| nacl::Handles to imc_handles. Unless |
19 // EnableBackgroundSelLdrLaunch is called, this method must be invoked from | 19 // EnableBackgroundSelLdrLaunch is called, this method must be invoked from |
20 // the main thread. | 20 // the main thread. |
21 PP_Bool (*LaunchSelLdr)(PP_Instance instance, | 21 PP_Bool (*LaunchSelLdr)(PP_Instance instance, |
22 const char* alleged_url, | 22 const char* alleged_url, |
23 int socket_count, | 23 int socket_count, |
(...skipping 23 matching lines...) Expand all Loading... | |
47 // http://code.google.com/p/chromium/issues/detail?id=114439#c8). | 47 // http://code.google.com/p/chromium/issues/detail?id=114439#c8). |
48 // We use void* rather than the Windows HANDLE type to avoid an | 48 // We use void* rather than the Windows HANDLE type to avoid an |
49 // #ifdef here. We use int rather than PP_Bool/bool so that this is | 49 // #ifdef here. We use int rather than PP_Bool/bool so that this is |
50 // usable with NaClSetBrokerDuplicateHandleFunc() without further | 50 // usable with NaClSetBrokerDuplicateHandleFunc() without further |
51 // wrapping. | 51 // wrapping. |
52 int (*BrokerDuplicateHandle)(void* source_handle, | 52 int (*BrokerDuplicateHandle)(void* source_handle, |
53 uint32_t process_id, | 53 uint32_t process_id, |
54 void** target_handle, | 54 void** target_handle, |
55 uint32_t desired_access, | 55 uint32_t desired_access, |
56 uint32_t options); | 56 uint32_t options); |
57 | |
58 // Returns a read-only file descriptor of a file rooted in the Pnacl | |
59 // component directory, or -1 on error. | |
60 // Do we want this to take a completion callback and be async, or | |
61 // or could we make this happen on another thread? | |
62 int (*GetReadonlyPnaclFd)(const char* filename); | |
57 }; | 63 }; |
58 | 64 |
59 #endif // PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ | 65 #endif // PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ |
OLD | NEW |