Chromium Code Reviews| Index: tools/gn/source_file.h |
| diff --git a/tools/gn/source_file.h b/tools/gn/source_file.h |
| index 83ce2b59d50bc182e205e1d0bac9fd5d9ed38c5e..8e53de31123d8b8708f8d9a2232bf89964755ca8 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. |
| + explicit SourceFile(SwapIn, std::string* value); |
|
scottmg
2014/08/05 22:30:32
no explicit necessary
|
| + |
| ~SourceFile(); |
| bool is_null() const { return value_.empty(); } |