| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_LIB_FILE_H_ | 5 #ifndef TOOLS_GN_LIB_FILE_H_ |
| 6 #define TOOLS_GN_LIB_FILE_H_ | 6 #define TOOLS_GN_LIB_FILE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <algorithm> | 10 #include <algorithm> |
| 9 #include <string> | 11 #include <string> |
| 10 | 12 |
| 11 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
| 12 #include "tools/gn/source_file.h" | 14 #include "tools/gn/source_file.h" |
| 13 | 15 |
| 14 // Represents an entry in "libs" list. Can be either a path (a SourceFile) or | 16 // Represents an entry in "libs" list. Can be either a path (a SourceFile) or |
| 15 // a library name (a string). | 17 // a library name (a string). |
| 16 class LibFile { | 18 class LibFile { |
| 17 public: | 19 public: |
| (...skipping 29 matching lines...) Expand all Loading... |
| 47 } | 49 } |
| 48 }; | 50 }; |
| 49 | 51 |
| 50 } // namespace BASE_HASH_NAMESPACE | 52 } // namespace BASE_HASH_NAMESPACE |
| 51 | 53 |
| 52 inline void swap(LibFile& lhs, LibFile& rhs) { | 54 inline void swap(LibFile& lhs, LibFile& rhs) { |
| 53 lhs.Swap(&rhs); | 55 lhs.Swap(&rhs); |
| 54 } | 56 } |
| 55 | 57 |
| 56 #endif // TOOLS_GN_LIB_FILE_H_ | 58 #endif // TOOLS_GN_LIB_FILE_H_ |
| OLD | NEW |