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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 nacl::scoped_ptr<FileDownloader> streaming_downloader_; | 188 nacl::scoped_ptr<FileDownloader> streaming_downloader_; |
189 | 189 |
190 // Used to report information when errors (PPAPI or otherwise) are reported. | 190 // Used to report information when errors (PPAPI or otherwise) are reported. |
191 ErrorInfo error_info_; | 191 ErrorInfo error_info_; |
192 | 192 |
193 // True if an error was already reported, and translate_notify_callback_ | 193 // True if an error was already reported, and translate_notify_callback_ |
194 // was already run/consumed. | 194 // was already run/consumed. |
195 bool error_already_reported_; | 195 bool error_already_reported_; |
196 | 196 |
197 // State for timing and size information for UMA stats. | 197 // State for timing and size information for UMA stats. |
198 int64_t pnacl_init_time_; | |
199 int64_t pexe_size_; // Count as we stream -- will converge to pexe size. | 198 int64_t pexe_size_; // Count as we stream -- will converge to pexe size. |
200 int64_t pexe_bytes_compiled_; // Count as we compile. | 199 int64_t pexe_bytes_compiled_; // Count as we compile. |
201 int64_t expected_pexe_size_; // Expected download total (-1 if unknown). | 200 int64_t expected_pexe_size_; // Expected download total (-1 if unknown). |
202 | 201 |
203 // The helper thread used to do translations via SRPC. | 202 // The helper thread used to do translations via SRPC. |
204 // It accesses fields of PnaclCoordinator so it must have a | 203 // It accesses fields of PnaclCoordinator so it must have a |
205 // shorter lifetime. | 204 // shorter lifetime. |
206 nacl::scoped_ptr<PnaclTranslateThread> translate_thread_; | 205 nacl::scoped_ptr<PnaclTranslateThread> translate_thread_; |
207 }; | 206 }; |
208 | 207 |
209 //---------------------------------------------------------------------- | 208 //---------------------------------------------------------------------- |
210 | 209 |
211 } // namespace plugin; | 210 } // namespace plugin; |
212 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_COORDINATOR_H_ | 211 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_COORDINATOR_H_ |
OLD | NEW |