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 NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_COORDINATOR_H_ | 5 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_COORDINATOR_H_ |
6 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_COORDINATOR_H_ | 6 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_COORDINATOR_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 163 |
164 // Callback for when llc and ld have been downloaded. | 164 // Callback for when llc and ld have been downloaded. |
165 void ResourcesDidLoad(int32_t pp_error); | 165 void ResourcesDidLoad(int32_t pp_error); |
166 | 166 |
167 // Callbacks for temporary file related stages. | 167 // Callbacks for temporary file related stages. |
168 // They are invoked from ResourcesDidLoad and proceed in declaration order. | 168 // They are invoked from ResourcesDidLoad and proceed in declaration order. |
169 // Invoked when the temporary file system is successfully opened in PPAPI. | 169 // Invoked when the temporary file system is successfully opened in PPAPI. |
170 void FileSystemDidOpen(int32_t pp_error); | 170 void FileSystemDidOpen(int32_t pp_error); |
171 // Invoked after we are sure the PNaCl temporary directory exists. | 171 // Invoked after we are sure the PNaCl temporary directory exists. |
172 void DirectoryWasCreated(int32_t pp_error); | 172 void DirectoryWasCreated(int32_t pp_error); |
| 173 // Invoke to issue a GET request for bitcode. |
| 174 void OpenBitcodeStream(); |
| 175 // Invoked when we've started an URL fetch for the pexe to check for |
| 176 // caching metadata. |
| 177 void BitcodeStreamDidOpen(int32_t pp_error); |
173 // Invoked after we have checked the PNaCl cache for a translated version. | 178 // Invoked after we have checked the PNaCl cache for a translated version. |
174 void CachedFileDidOpen(int32_t pp_error); | 179 void CachedFileDidOpen(int32_t pp_error); |
175 // Invoked when a pexe data chunk arrives (when using streaming translation) | 180 // Invoked when a pexe data chunk arrives (when using streaming translation) |
176 void BitcodeStreamGotData(int32_t pp_error, FileStreamData data); | 181 void BitcodeStreamGotData(int32_t pp_error, FileStreamData data); |
177 // Invoked when a pexe data chunk is compiled. | 182 // Invoked when a pexe data chunk is compiled. |
178 void BitcodeGotCompiled(int32_t pp_error, int64_t bytes_compiled); | 183 void BitcodeGotCompiled(int32_t pp_error, int64_t bytes_compiled); |
179 // Invoked when the pexe download finishes (using streaming translation) | 184 // Invoked when the pexe download finishes (using streaming translation) |
180 void BitcodeStreamDidFinish(int32_t pp_error); | 185 void BitcodeStreamDidFinish(int32_t pp_error); |
181 // Invoked when the write descriptor for obj_file_ is created. | 186 // Invoked when the write descriptor for obj_file_ is created. |
182 void ObjectFileDidOpen(int32_t pp_error); | 187 void ObjectFileDidOpen(int32_t pp_error); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 // The helper thread used to do translations via SRPC. | 273 // The helper thread used to do translations via SRPC. |
269 // Keep this last in declaration order to ensure the other variables | 274 // Keep this last in declaration order to ensure the other variables |
270 // haven't been destroyed yet when its destructor runs. | 275 // haven't been destroyed yet when its destructor runs. |
271 nacl::scoped_ptr<PnaclTranslateThread> translate_thread_; | 276 nacl::scoped_ptr<PnaclTranslateThread> translate_thread_; |
272 }; | 277 }; |
273 | 278 |
274 //---------------------------------------------------------------------- | 279 //---------------------------------------------------------------------- |
275 | 280 |
276 } // namespace plugin; | 281 } // namespace plugin; |
277 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_COORDINATOR_H_ | 282 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_COORDINATOR_H_ |
OLD | NEW |