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

Unified Diff: tools/gn/source_file.h

Issue 429423002: Refactor GN source expansions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/ninja_target_writer.cc ('k') | tools/gn/source_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/source_file.h
diff --git a/tools/gn/source_file.h b/tools/gn/source_file.h
index 83ce2b59d50bc182e205e1d0bac9fd5d9ed38c5e..0c1508e5255e4a0d1de434e6f88c7d5f82f50326 100644
--- a/tools/gn/source_file.h
+++ b/tools/gn/source_file.h
@@ -18,11 +18,17 @@ class SourceDir;
// ends in one.
class SourceFile {
public:
+ enum SwapIn { SWAP_IN };
+
SourceFile();
// Takes a known absolute source file. Always begins in a slash.
explicit SourceFile(const base::StringPiece& p);
+ // Constructs from the given string by swapping in the contents of the given
+ // value. The value will be the empty string after this call.
+ SourceFile(SwapIn, std::string* value);
+
~SourceFile();
bool is_null() const { return value_.empty(); }
« no previous file with comments | « tools/gn/ninja_target_writer.cc ('k') | tools/gn/source_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698