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 #include "ppapi/c/private/pp_file_handle.h" | 12 #include "ppapi/c/private/pp_file_handle.h" |
13 | 13 |
14 #define PPB_NACL_PRIVATE_INTERFACE "PPB_NaCl(Private);0.8" | 14 #define PPB_NACL_PRIVATE_INTERFACE "PPB_NaCl(Private);0.9" |
15 | 15 |
16 struct PPB_NaCl_Private { | 16 struct PPB_NaCl_Private { |
17 // This function launches NaCl's sel_ldr process. On success, the function | 17 // This function launches NaCl's sel_ldr process. On success, the function |
18 // returns true, otherwise it returns false. When it returns true, it will | 18 // returns true, otherwise it returns false. When it returns true, it will |
19 // write |socket_count| nacl::Handles to imc_handles. Unless | 19 // write |socket_count| nacl::Handles to imc_handles. Unless |
20 // EnableBackgroundSelLdrLaunch is called, this method must be invoked from | 20 // EnableBackgroundSelLdrLaunch is called, this method must be invoked from |
21 // the main thread. | 21 // the main thread. |
22 PP_Bool (*LaunchSelLdr)(PP_Instance instance, | 22 PP_Bool (*LaunchSelLdr)(PP_Instance instance, |
23 const char* alleged_url, | 23 const char* alleged_url, |
24 int socket_count, | 24 int socket_count, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // Do we want this to take a completion callback and be async, or | 61 // Do we want this to take a completion callback and be async, or |
62 // or could we make this happen on another thread? | 62 // or could we make this happen on another thread? |
63 PP_FileHandle (*GetReadonlyPnaclFd)(const char* filename); | 63 PP_FileHandle (*GetReadonlyPnaclFd)(const char* filename); |
64 | 64 |
65 // This creates a temporary file that will be deleted by the time | 65 // This creates a temporary file that will be deleted by the time |
66 // the last handle is closed (or earlier on POSIX systems), and | 66 // the last handle is closed (or earlier on POSIX systems), and |
67 // returns a posix handle to that temporary file. | 67 // returns a posix handle to that temporary file. |
68 PP_FileHandle (*CreateTemporaryFile)(PP_Instance instance); | 68 PP_FileHandle (*CreateTemporaryFile)(PP_Instance instance); |
69 | 69 |
70 // Return true if we are off the record. | 70 // Return true if we are off the record. |
71 PP_Bool (*IsOffTheRecord)(); | 71 PP_Bool (*IsOffTheRecord)(void); |
| 72 |
| 73 // Return true if PNaCl is turned on. |
| 74 PP_Bool (*IsPnaclEnabled)(void); |
72 }; | 75 }; |
73 | 76 |
74 #endif // PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ | 77 #endif // PPAPI_C_PRIVATE_PPB_NACL_PRIVATE_H_ |
OLD | NEW |