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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 }; | 401 }; |
402 | 402 |
403 } // namespace base | 403 } // namespace base |
404 | 404 |
405 // Temporarily have non-Linux platforms use a "using" so we can convert those | 405 // Temporarily have non-Linux platforms use a "using" so we can convert those |
406 // over one-at-a-time. | 406 // over one-at-a-time. |
407 // | 407 // |
408 // http://crosbug.com/39008 MTPD has a circular dependency on base and uses the | 408 // http://crosbug.com/39008 MTPD has a circular dependency on base and uses the |
409 // old non-namespaced FilePath. | 409 // old non-namespaced FilePath. |
410 #if defined(MTPD_DEVICE_MANAGER_H_) || defined(OS_CHROMEOS) || \ | 410 #if defined(MTPD_DEVICE_MANAGER_H_) || defined(OS_CHROMEOS) || \ |
411 !defined(OS_LINUX) | 411 (!defined(OS_LINUX) && !defined(OS_MAXOSX)) |
412 using base::FilePath; | 412 using base::FilePath; |
413 #endif | 413 #endif |
414 | 414 |
415 // This is required by googletest to print a readable output on test failures. | 415 // This is required by googletest to print a readable output on test failures. |
416 BASE_EXPORT extern void PrintTo(const base::FilePath& path, std::ostream* out); | 416 BASE_EXPORT extern void PrintTo(const base::FilePath& path, std::ostream* out); |
417 | 417 |
418 // Macros for string literal initialization of FilePath::CharType[], and for | 418 // Macros for string literal initialization of FilePath::CharType[], and for |
419 // using a FilePath::CharType[] in a printf-style format string. | 419 // using a FilePath::CharType[] in a printf-style format string. |
420 #if defined(OS_POSIX) | 420 #if defined(OS_POSIX) |
421 #define FILE_PATH_LITERAL(x) x | 421 #define FILE_PATH_LITERAL(x) x |
(...skipping 21 matching lines...) Expand all 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_FILE_PATH_H_ | 452 #endif // BASE_FILE_PATH_H_ |
OLD | NEW |