| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 TOOLS_GN_LOADER_H_ | 5 #ifndef TOOLS_GN_LOADER_H_ |
| 6 #define TOOLS_GN_LOADER_H_ | 6 #define TOOLS_GN_LOADER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 const LocationRange& origin, | 122 const LocationRange& origin, |
| 123 const SourceFile& file); | 123 const SourceFile& file); |
| 124 void ScheduleLoadBuildConfig( | 124 void ScheduleLoadBuildConfig( |
| 125 Settings* settings, | 125 Settings* settings, |
| 126 const Scope::KeyValueMap& toolchain_overrides); | 126 const Scope::KeyValueMap& toolchain_overrides); |
| 127 | 127 |
| 128 // Runs the given file on the background thread. These are called by the | 128 // Runs the given file on the background thread. These are called by the |
| 129 // input file manager. | 129 // input file manager. |
| 130 void BackgroundLoadFile(const Settings* settings, | 130 void BackgroundLoadFile(const Settings* settings, |
| 131 const SourceFile& file_name, | 131 const SourceFile& file_name, |
| 132 const LocationRange& origin, |
| 132 const ParseNode* root); | 133 const ParseNode* root); |
| 133 void BackgroundLoadBuildConfig( | 134 void BackgroundLoadBuildConfig( |
| 134 Settings* settings, | 135 Settings* settings, |
| 135 const Scope::KeyValueMap& toolchain_overrides, | 136 const Scope::KeyValueMap& toolchain_overrides, |
| 136 const ParseNode* root); | 137 const ParseNode* root); |
| 137 | 138 |
| 138 // Posted to the main thread when any file other than a build config file | 139 // Posted to the main thread when any file other than a build config file |
| 139 // file has completed running. | 140 // file has completed running. |
| 140 void DidLoadFile(); | 141 void DidLoadFile(); |
| 141 | 142 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 172 | 173 |
| 173 const BuildSettings* build_settings_; | 174 const BuildSettings* build_settings_; |
| 174 Label default_toolchain_label_; | 175 Label default_toolchain_label_; |
| 175 | 176 |
| 176 // Records for the build config file loads. | 177 // Records for the build config file loads. |
| 177 typedef std::map<Label, std::unique_ptr<ToolchainRecord>> ToolchainRecordMap; | 178 typedef std::map<Label, std::unique_ptr<ToolchainRecord>> ToolchainRecordMap; |
| 178 ToolchainRecordMap toolchain_records_; | 179 ToolchainRecordMap toolchain_records_; |
| 179 }; | 180 }; |
| 180 | 181 |
| 181 #endif // TOOLS_GN_LOADER_H_ | 182 #endif // TOOLS_GN_LOADER_H_ |
| OLD | NEW |