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_INPUT_FILE_MANAGER_H_ | 5 #ifndef TOOLS_GN_INPUT_FILE_MANAGER_H_ |
6 #define TOOLS_GN_INPUT_FILE_MANAGER_H_ | 6 #define TOOLS_GN_INPUT_FILE_MANAGER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // Does not count dynamic input. | 87 // Does not count dynamic input. |
88 int GetInputFileCount() const; | 88 int GetInputFileCount() const; |
89 | 89 |
90 // Fills the vector with all input files. | 90 // Fills the vector with all input files. |
91 void GetAllPhysicalInputFileNames(std::vector<base::FilePath>* result) const; | 91 void GetAllPhysicalInputFileNames(std::vector<base::FilePath>* result) const; |
92 | 92 |
93 private: | 93 private: |
94 friend class base::RefCountedThreadSafe<InputFileManager>; | 94 friend class base::RefCountedThreadSafe<InputFileManager>; |
95 | 95 |
96 struct InputFileData { | 96 struct InputFileData { |
97 InputFileData(const SourceFile& file_name); | 97 explicit InputFileData(const SourceFile& file_name); |
98 ~InputFileData(); | 98 ~InputFileData(); |
99 | 99 |
100 // Don't touch this outside the lock until it's marked loaded. | 100 // Don't touch this outside the lock until it's marked loaded. |
101 InputFile file; | 101 InputFile file; |
102 | 102 |
103 bool loaded; | 103 bool loaded; |
104 | 104 |
105 bool sync_invocation; | 105 bool sync_invocation; |
106 | 106 |
107 // Lists all invocations that need to be executed when the file completes | 107 // Lists all invocations that need to be executed when the file completes |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 // | 147 // |
148 // See AddDynamicInput(). | 148 // See AddDynamicInput(). |
149 // | 149 // |
150 // Owning pointers. | 150 // Owning pointers. |
151 std::vector<InputFileData*> dynamic_inputs_; | 151 std::vector<InputFileData*> dynamic_inputs_; |
152 | 152 |
153 DISALLOW_COPY_AND_ASSIGN(InputFileManager); | 153 DISALLOW_COPY_AND_ASSIGN(InputFileManager); |
154 }; | 154 }; |
155 | 155 |
156 #endif // TOOLS_GN_INPUT_FILE_MANAGER_H_ | 156 #endif // TOOLS_GN_INPUT_FILE_MANAGER_H_ |
OLD | NEW |