| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 #ifndef BASE_FILES_FILE_PATH_H_ | 102 #ifndef BASE_FILES_FILE_PATH_H_ |
| 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/containers/hash_tables.h" |
| 112 #include "base/string16.h" | 112 #include "base/string16.h" |
| 113 #include "base/strings/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 |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 | 443 |
| 444 inline size_t hash_value(const base::FilePath& f) { | 444 inline size_t hash_value(const base::FilePath& f) { |
| 445 return hash_value(f.value()); | 445 return hash_value(f.value()); |
| 446 } | 446 } |
| 447 | 447 |
| 448 #endif // COMPILER | 448 #endif // COMPILER |
| 449 | 449 |
| 450 } // namespace BASE_HASH_NAMESPACE | 450 } // namespace BASE_HASH_NAMESPACE |
| 451 | 451 |
| 452 #endif // BASE_FILES_FILE_PATH_H_ | 452 #endif // BASE_FILES_FILE_PATH_H_ |
| OLD | NEW |