OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // FilePath is a container for pathnames stored in a platform's native string | 5 // FilePath is a container for pathnames stored in a platform's native string |
6 // type, providing containers for manipulation in according with the | 6 // type, providing containers for manipulation in according with the |
7 // platform's conventions for pathnames. It supports the following path | 7 // platform's conventions for pathnames. It supports the following path |
8 // types: | 8 // types: |
9 // | 9 // |
10 // POSIX Windows | 10 // POSIX Windows |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 #define BASE_FILES_FILE_PATH_H_ | 103 #define BASE_FILES_FILE_PATH_H_ |
104 | 104 |
105 #include <stddef.h> | 105 #include <stddef.h> |
106 #include <string> | 106 #include <string> |
107 #include <vector> | 107 #include <vector> |
108 | 108 |
109 #include "base/base_export.h" | 109 #include "base/base_export.h" |
110 #include "base/compiler_specific.h" | 110 #include "base/compiler_specific.h" |
111 #include "base/hash_tables.h" | 111 #include "base/hash_tables.h" |
112 #include "base/string16.h" | 112 #include "base/string16.h" |
113 #include "base/string_piece.h" // For implicit conversions. | 113 #include "base/strings/string_piece.h" // For implicit conversions. |
114 #include "build/build_config.h" | 114 #include "build/build_config.h" |
115 | 115 |
116 // Windows-style drive letter support and pathname separator characters can be | 116 // Windows-style drive letter support and pathname separator characters can be |
117 // enabled and disabled independently, to aid testing. These #defines are | 117 // enabled and disabled independently, to aid testing. These #defines are |
118 // here so that the same setting can be used in both the implementation and | 118 // here so that the same setting can be used in both the implementation and |
119 // in the unit test. | 119 // in the unit test. |
120 #if defined(OS_WIN) | 120 #if defined(OS_WIN) |
121 #define FILE_PATH_USES_DRIVE_LETTERS | 121 #define FILE_PATH_USES_DRIVE_LETTERS |
122 #define FILE_PATH_USES_WIN_SEPARATORS | 122 #define FILE_PATH_USES_WIN_SEPARATORS |
123 #endif // OS_WIN | 123 #endif // OS_WIN |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 | 433 |
434 inline size_t hash_value(const base::FilePath& f) { | 434 inline size_t hash_value(const base::FilePath& f) { |
435 return hash_value(f.value()); | 435 return hash_value(f.value()); |
436 } | 436 } |
437 | 437 |
438 #endif // COMPILER | 438 #endif // COMPILER |
439 | 439 |
440 } // namespace BASE_HASH_NAMESPACE | 440 } // namespace BASE_HASH_NAMESPACE |
441 | 441 |
442 #endif // BASE_FILES_FILE_PATH_H_ | 442 #endif // BASE_FILES_FILE_PATH_H_ |
OLD | NEW |