Chromium Code Reviews| Index: base/file_path.cc |
| =================================================================== |
| --- base/file_path.cc (revision 68690) |
| +++ base/file_path.cc (working copy) |
| @@ -34,6 +34,11 @@ |
| const FilePath::CharType FilePath::kCurrentDirectory[] = FILE_PATH_LITERAL("."); |
| const FilePath::CharType FilePath::kParentDirectory[] = FILE_PATH_LITERAL(".."); |
| +#if defined(OS_WIN) |
| +const FilePath::CharType FilePath::kExtendedPathPrefix[] = FILE_PATH_LITERAL( |
| + "\\\\?\\"); |
|
Mark Mentovai
2010/12/17 01:58:49
This is wrapped poorly. Wrap after the =, so FILE_
|
| +#endif |
| + |
| const FilePath::CharType FilePath::kExtensionSeparator = FILE_PATH_LITERAL('.'); |
| typedef FilePath::StringType StringType; |
| @@ -1190,3 +1195,9 @@ |
| return FilePath(copy); |
| } |
| #endif |
| + |
| +#if defined(OS_WIN) |
| +bool FilePath::StartsWithExtendedPathPrefix() const { |
| + return StartsWith(path_, kExtendedPathPrefix, false); |
| +} |
| +#endif |