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 #include "components/nacl/renderer/plugin/pnacl_coordinator.h" | 5 #include "components/nacl/renderer/plugin/pnacl_coordinator.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <sstream> | 8 #include <sstream> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 PnaclCoordinator::PnaclCoordinator( | 89 PnaclCoordinator::PnaclCoordinator( |
90 Plugin* plugin, | 90 Plugin* plugin, |
91 const std::string& pexe_url, | 91 const std::string& pexe_url, |
92 const PP_PNaClOptions& pnacl_options, | 92 const PP_PNaClOptions& pnacl_options, |
93 const pp::CompletionCallback& translate_notify_callback) | 93 const pp::CompletionCallback& translate_notify_callback) |
94 : translate_finish_error_(PP_OK), | 94 : translate_finish_error_(PP_OK), |
95 plugin_(plugin), | 95 plugin_(plugin), |
96 translate_notify_callback_(translate_notify_callback), | 96 translate_notify_callback_(translate_notify_callback), |
97 translation_finished_reported_(false), | 97 translation_finished_reported_(false), |
98 compiler_subprocess_("compiler.nexe", NULL, NULL), | 98 compiler_subprocess_("compiler.nexe", NULL), |
99 ld_subprocess_("linker.nexe", NULL, NULL), | 99 ld_subprocess_("linker.nexe", NULL), |
100 pexe_url_(pexe_url), | 100 pexe_url_(pexe_url), |
101 pnacl_options_(pnacl_options), | 101 pnacl_options_(pnacl_options), |
102 architecture_attributes_(GetArchitectureAttributes(plugin)), | 102 architecture_attributes_(GetArchitectureAttributes(plugin)), |
103 split_module_count_(0), | 103 split_module_count_(0), |
104 num_threads_(0), | 104 num_threads_(0), |
105 error_already_reported_(false), | 105 error_already_reported_(false), |
106 pexe_size_(0), | 106 pexe_size_(0), |
107 pexe_bytes_compiled_(0), | 107 pexe_bytes_compiled_(0), |
108 expected_pexe_size_(-1) { | 108 expected_pexe_size_(-1) { |
109 callback_factory_.Initialize(this); | 109 callback_factory_.Initialize(this); |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 "PnaclCoordinator: Linker process could not be created."); | 485 "PnaclCoordinator: Linker process could not be created."); |
486 return; | 486 return; |
487 } | 487 } |
488 GetNaClInterface()->LogTranslateTime( | 488 GetNaClInterface()->LogTranslateTime( |
489 "NaCl.Perf.PNaClLoadTime.LoadLinker", | 489 "NaCl.Perf.PNaClLoadTime.LoadLinker", |
490 NaClGetTimeOfDayMicroseconds() - ld_load_start_time); | 490 NaClGetTimeOfDayMicroseconds() - ld_load_start_time); |
491 translate_thread_->RunLink(); | 491 translate_thread_->RunLink(); |
492 } | 492 } |
493 | 493 |
494 } // namespace plugin | 494 } // namespace plugin |
OLD | NEW |