| 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_SETUP_H_ | 5 #ifndef TOOLS_GN_SETUP_H_ |
| 6 #define TOOLS_GN_SETUP_H_ | 6 #define TOOLS_GN_SETUP_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // the user omits the build directory argument (which is easy to do). | 107 // the user omits the build directory argument (which is easy to do). |
| 108 bool DoSetup(const std::string& build_dir, bool force_create); | 108 bool DoSetup(const std::string& build_dir, bool force_create); |
| 109 | 109 |
| 110 // Runs the load, returning true on success. On failure, prints the error | 110 // Runs the load, returning true on success. On failure, prints the error |
| 111 // and returns false. This includes both RunPreMessageLoop() and | 111 // and returns false. This includes both RunPreMessageLoop() and |
| 112 // RunPostMessageLoop(). | 112 // RunPostMessageLoop(). |
| 113 bool Run(); | 113 bool Run(); |
| 114 | 114 |
| 115 Scheduler& scheduler() { return scheduler_; } | 115 Scheduler& scheduler() { return scheduler_; } |
| 116 | 116 |
| 117 virtual Scheduler* GetScheduler() OVERRIDE; | 117 virtual Scheduler* GetScheduler() override; |
| 118 | 118 |
| 119 // Returns the file used to store the build arguments. Note that the path | 119 // Returns the file used to store the build arguments. Note that the path |
| 120 // might not exist. | 120 // might not exist. |
| 121 SourceFile GetBuildArgFile() const; | 121 SourceFile GetBuildArgFile() const; |
| 122 | 122 |
| 123 // Sets whether the build arguments should be filled during setup from the | 123 // Sets whether the build arguments should be filled during setup from the |
| 124 // command line/build argument file. This will be true by default. The use | 124 // command line/build argument file. This will be true by default. The use |
| 125 // case for setting it to false is when editing build arguments, we don't | 125 // case for setting it to false is when editing build arguments, we don't |
| 126 // want to rely on them being valid. | 126 // want to rely on them being valid. |
| 127 void set_fill_arguments(bool fa) { fill_arguments_ = fa; } | 127 void set_fill_arguments(bool fa) { fill_arguments_ = fa; } |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 // default copy constructor. | 202 // default copy constructor. |
| 203 DependentSetup(Setup* derive_from); | 203 DependentSetup(Setup* derive_from); |
| 204 DependentSetup(DependentSetup* derive_from); | 204 DependentSetup(DependentSetup* derive_from); |
| 205 virtual ~DependentSetup(); | 205 virtual ~DependentSetup(); |
| 206 | 206 |
| 207 // These are the two parts of Run() in the regular setup, not including the | 207 // These are the two parts of Run() in the regular setup, not including the |
| 208 // call to actually run the message loop. | 208 // call to actually run the message loop. |
| 209 void RunPreMessageLoop(); | 209 void RunPreMessageLoop(); |
| 210 bool RunPostMessageLoop(); | 210 bool RunPostMessageLoop(); |
| 211 | 211 |
| 212 virtual Scheduler* GetScheduler() OVERRIDE; | 212 virtual Scheduler* GetScheduler() override; |
| 213 | 213 |
| 214 private: | 214 private: |
| 215 Scheduler* scheduler_; | 215 Scheduler* scheduler_; |
| 216 }; | 216 }; |
| 217 | 217 |
| 218 #endif // TOOLS_GN_SETUP_H_ | 218 #endif // TOOLS_GN_SETUP_H_ |
| OLD | NEW |