Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Side by Side Diff: tools/gn/config.h

Issue 51693002: GN: toolchain threading cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/gn/config.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_CONFIG_H_ 5 #ifndef TOOLS_GN_CONFIG_H_
6 #define TOOLS_GN_CONFIG_H_ 6 #define TOOLS_GN_CONFIG_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "tools/gn/config_values.h" 9 #include "tools/gn/config_values.h"
10 #include "tools/gn/item.h" 10 #include "tools/gn/item.h"
11 11
12 class Err; 12 class Err;
13 class ItemTree; 13 class ItemTree;
14 class LocationRange; 14 class LocationRange;
15 class Settings; 15 class Settings;
16 16
17 // Represents a named config in the dependency graph. 17 // Represents a named config in the dependency graph.
18 class Config : public Item { 18 class Config : public Item {
19 public: 19 public:
20 Config(const Label& label); 20 Config(const Settings* settings, const Label& label);
21 virtual ~Config(); 21 virtual ~Config();
22 22
23 virtual Config* AsConfig() OVERRIDE; 23 virtual Config* AsConfig() OVERRIDE;
24 virtual const Config* AsConfig() const OVERRIDE; 24 virtual const Config* AsConfig() const OVERRIDE;
25 25
26 ConfigValues& config_values() { return config_values_; } 26 ConfigValues& config_values() { return config_values_; }
27 const ConfigValues& config_values() const { return config_values_; } 27 const ConfigValues& config_values() const { return config_values_; }
28 28
29 // Gets or creates a config. 29 // Gets or creates a config.
30 // 30 //
31 // This is like the TargetManager is for Targets, but Configs are so much 31 // This is like the TargetManager is for Targets, but Configs are so much
32 // simpler that this one function is all we need. 32 // simpler that this one function is all we need.
33 static Config* GetConfig(const Settings* settings, 33 static Config* GetConfig(const Settings* settings,
34 const LocationRange& specified_from_here, 34 const LocationRange& specified_from_here,
35 const Label& label, 35 const Label& label,
36 Item* dep_from, 36 Item* dep_from,
37 Err* err); 37 Err* err);
38 38
39 private: 39 private:
40 ConfigValues config_values_; 40 ConfigValues config_values_;
41 41
42 DISALLOW_COPY_AND_ASSIGN(Config); 42 DISALLOW_COPY_AND_ASSIGN(Config);
43 }; 43 };
44 44
45 #endif // TOOLS_GN_CONFIG_H_ 45 #endif // TOOLS_GN_CONFIG_H_
OLDNEW
« no previous file with comments | « no previous file | tools/gn/config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698