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 #include "base/files/file_path.h" | 5 #include "base/files/file_path.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 #include <algorithm> | 8 #include <algorithm> |
9 | 9 |
10 #include "base/basictypes.h" | |
11 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/macros.h" |
12 #include "base/pickle.h" | 12 #include "base/pickle.h" |
13 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "base/strings/sys_string_conversions.h" | 15 #include "base/strings/sys_string_conversions.h" |
16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
| 17 #include "build/build_config.h" |
17 | 18 |
18 #if defined(OS_MACOSX) | 19 #if defined(OS_MACOSX) |
19 #include "base/mac/scoped_cftyperef.h" | 20 #include "base/mac/scoped_cftyperef.h" |
20 #include "base/third_party/icu/icu_utf.h" | 21 #include "base/third_party/icu/icu_utf.h" |
21 #endif | 22 #endif |
22 | 23 |
23 #if defined(OS_WIN) | 24 #if defined(OS_WIN) |
24 #include <windows.h> | 25 #include <windows.h> |
25 #elif defined(OS_MACOSX) | 26 #elif defined(OS_MACOSX) |
26 #include <CoreFoundation/CoreFoundation.h> | 27 #include <CoreFoundation/CoreFoundation.h> |
(...skipping 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1312 #endif | 1313 #endif |
1313 } | 1314 } |
1314 | 1315 |
1315 #if defined(OS_ANDROID) | 1316 #if defined(OS_ANDROID) |
1316 bool FilePath::IsContentUri() const { | 1317 bool FilePath::IsContentUri() const { |
1317 return StartsWith(path_, "content://", base::CompareCase::INSENSITIVE_ASCII); | 1318 return StartsWith(path_, "content://", base::CompareCase::INSENSITIVE_ASCII); |
1318 } | 1319 } |
1319 #endif | 1320 #endif |
1320 | 1321 |
1321 } // namespace base | 1322 } // namespace base |
OLD | NEW |