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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // http://blogs.msdn.com/oldnewthing/archive/2005/11/22/495740.aspx | 100 // http://blogs.msdn.com/oldnewthing/archive/2005/11/22/495740.aspx |
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/containers/hash_tables.h" | 111 #include "base/containers/hash_tables.h" |
111 #include "base/strings/string16.h" | 112 #include "base/strings/string16.h" |
112 #include "base/strings/string_piece.h" // For implicit conversions. | 113 #include "base/strings/string_piece.h" // For implicit conversions. |
113 #include "build/build_config.h" | 114 #include "build/build_config.h" |
114 | 115 |
115 // Windows-style drive letter support and pathname separator characters can be | 116 // Windows-style drive letter support and pathname separator characters can be |
116 // enabled and disabled independently, to aid testing. These #defines are | 117 // enabled and disabled independently, to aid testing. These #defines are |
117 // 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 |
118 // in the unit test. | 119 // in the unit test. |
119 #if defined(OS_WIN) | 120 #if defined(OS_WIN) |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 template<> | 457 template<> |
457 struct hash<base::FilePath> { | 458 struct hash<base::FilePath> { |
458 size_t operator()(const base::FilePath& f) const { | 459 size_t operator()(const base::FilePath& f) const { |
459 return hash<base::FilePath::StringType>()(f.value()); | 460 return hash<base::FilePath::StringType>()(f.value()); |
460 } | 461 } |
461 }; | 462 }; |
462 | 463 |
463 } // namespace BASE_HASH_NAMESPACE | 464 } // namespace BASE_HASH_NAMESPACE |
464 | 465 |
465 #endif // BASE_FILES_FILE_PATH_H_ | 466 #endif // BASE_FILES_FILE_PATH_H_ |
OLD | NEW |