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

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

Issue 964203002: tools/gn: Fix errors found by Facebook's flint tool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix chromium-style plugin errors Created 5 years, 9 months 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
« no previous file with comments | « tools/gn/input_file.h ('k') | tools/gn/loader.h » ('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_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
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
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_
OLDNEW
« no previous file with comments | « tools/gn/input_file.h ('k') | tools/gn/loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698