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 /* This file contains NaCl private interfaces. This interface is not versioned | 6 /* This file contains NaCl private interfaces. This interface is not versioned |
7 * and is for internal Chrome use. It may change without notice. */ | 7 * and is for internal Chrome use. It may change without notice. */ |
8 | 8 |
9 label Chrome { | 9 label Chrome { |
10 M25 = 1.0 | 10 M25 = 1.0 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 * component directory, or an invalid handle on failure. | 103 * component directory, or an invalid handle on failure. |
104 */ | 104 */ |
105 PP_FileHandle GetReadonlyPnaclFd([in] str_t filename); | 105 PP_FileHandle GetReadonlyPnaclFd([in] str_t filename); |
106 | 106 |
107 /* This creates a temporary file that will be deleted by the time | 107 /* This creates a temporary file that will be deleted by the time |
108 * the last handle is closed (or earlier on POSIX systems), and | 108 * the last handle is closed (or earlier on POSIX systems), and |
109 * returns a posix handle to that temporary file. | 109 * returns a posix handle to that temporary file. |
110 */ | 110 */ |
111 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance); | 111 PP_FileHandle CreateTemporaryFile([in] PP_Instance instance); |
112 | 112 |
| 113 /* Return the number of processors in the system as reported by the OS */ |
| 114 int32_t GetNumberOfProcessors(); |
| 115 |
113 /* Create a temporary file, which will be deleted by the time the | 116 /* Create a temporary file, which will be deleted by the time the |
114 * last handle is closed (or earlier on POSIX systems), to use for | 117 * last handle is closed (or earlier on POSIX systems), to use for |
115 * the nexe with the cache information given by |pexe_url|, | 118 * the nexe with the cache information given by |pexe_url|, |
116 * |abi_version|, |opt_level|, |last_modified|, |etag|, and | 119 * |abi_version|, |opt_level|, |last_modified|, |etag|, and |
117 * |has_no_store_header|. If the nexe is already present in the | 120 * |has_no_store_header|. If the nexe is already present in the |
118 * cache, |is_hit| is set to PP_TRUE and the contents of the nexe | 121 * cache, |is_hit| is set to PP_TRUE and the contents of the nexe |
119 * will be copied into the temporary file. Otherwise |is_hit| is set | 122 * will be copied into the temporary file. Otherwise |is_hit| is set |
120 * to PP_FALSE and the temporary file will be writeable. Currently | 123 * to PP_FALSE and the temporary file will be writeable. Currently |
121 * the implementation is a stub, which always sets is_hit to false | 124 * the implementation is a stub, which always sets is_hit to false |
122 * and calls the implementation of CreateTemporaryFile. In a | 125 * and calls the implementation of CreateTemporaryFile. In a |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 [in] uint64_t loaded_bytes, | 174 [in] uint64_t loaded_bytes, |
172 [in] uint64_t total_bytes); | 175 [in] uint64_t total_bytes); |
173 | 176 |
174 /* Sets a read-only property on the <embed> DOM element that corresponds to | 177 /* Sets a read-only property on the <embed> DOM element that corresponds to |
175 * the given instance. | 178 * the given instance. |
176 */ | 179 */ |
177 void SetReadOnlyProperty([in] PP_Instance instance, | 180 void SetReadOnlyProperty([in] PP_Instance instance, |
178 [in] PP_Var key, | 181 [in] PP_Var key, |
179 [in] PP_Var value); | 182 [in] PP_Var value); |
180 }; | 183 }; |
OLD | NEW |