OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include <algorithm> | 5 #include </Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreFoundatio
n.framework/Headers/CFBase.h> |
| 6 #include </Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreFoundatio
n.framework/Headers/CFString.h> |
| 7 #include </Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/CoreServices.
framework/Headers/../Frameworks/CarbonCore.framework/Headers/MacTypes.h> |
| 8 #include <stdbool.h> |
| 9 #include <stddef.h> |
| 10 #include <string.h> |
| 11 #include <string> |
| 12 #include <vector> |
6 | 13 |
| 14 #include "base/basictypes.h" |
7 #include "base/file_path.h" | 15 #include "base/file_path.h" |
| 16 #include "base/string16.h" |
| 17 #include "build/build_config.h" |
8 | 18 |
9 #if defined(OS_WIN) | 19 #if defined(OS_WIN) |
10 #include <windows.h> | 20 #include <windows.h> |
11 #elif defined(OS_MACOSX) | 21 #elif defined(OS_MACOSX) |
12 #include <CoreFoundation/CoreFoundation.h> | |
13 #endif | 22 #endif |
14 | 23 |
15 #include "base/logging.h" | 24 #include "base/logging.h" |
16 #include "base/pickle.h" | 25 #include "base/pickle.h" |
17 | |
18 // These includes are just for the *Hack functions, and should be removed | 26 // These includes are just for the *Hack functions, and should be removed |
19 // when those functions are removed. | 27 // when those functions are removed. |
20 #include "base/string_piece.h" | 28 #include "base/string_piece.h" |
21 #include "base/string_util.h" | 29 #include "base/string_util.h" |
22 #include "base/sys_string_conversions.h" | 30 #include "base/sys_string_conversions.h" |
23 #include "base/utf_string_conversions.h" | 31 #include "base/utf_string_conversions.h" |
24 | 32 |
25 #if defined(OS_MACOSX) | 33 #if defined(OS_MACOSX) |
26 #include "base/mac/scoped_cftyperef.h" | 34 #include "base/mac/scoped_cftyperef.h" |
27 #include "base/third_party/icu/icu_utf.h" | 35 #include "base/third_party/icu/icu_utf.h" |
(...skipping 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1195 | 1203 |
1196 #if defined(FILE_PATH_USES_WIN_SEPARATORS) | 1204 #if defined(FILE_PATH_USES_WIN_SEPARATORS) |
1197 FilePath FilePath::NormalizeWindowsPathSeparators() const { | 1205 FilePath FilePath::NormalizeWindowsPathSeparators() const { |
1198 StringType copy = path_; | 1206 StringType copy = path_; |
1199 for (size_t i = 1; i < arraysize(kSeparators); ++i) { | 1207 for (size_t i = 1; i < arraysize(kSeparators); ++i) { |
1200 std::replace(copy.begin(), copy.end(), kSeparators[i], kSeparators[0]); | 1208 std::replace(copy.begin(), copy.end(), kSeparators[i], kSeparators[0]); |
1201 } | 1209 } |
1202 return FilePath(copy); | 1210 return FilePath(copy); |
1203 } | 1211 } |
1204 #endif | 1212 #endif |
OLD | NEW |