Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Side by Side Diff: base/files/file_path.h

Issue 754433003: Update from https://crrev.com/305340 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/debug/proc_maps_linux_unittest.cc ('k') | base/logging_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « base/debug/proc_maps_linux_unittest.cc ('k') | base/logging_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698