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

Unified Diff: base/file_path.h

Issue 5754002: Moving away from shell api to support long path names on windows for filesystem. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/file_path.cc » ('j') | base/file_util_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_path.h
===================================================================
--- base/file_path.h (revision 68690)
+++ base/file_path.h (working copy)
@@ -151,6 +151,12 @@
// The character used to identify a file extension.
static const CharType kExtensionSeparator;
+#if defined(OS_WIN)
+ // Path length is limited to 260 on windows unless prefixed
Mark Mentovai 2010/12/16 19:48:19 Windows, a proper name, requires a capital letter.
Kavita Kanetkar 2010/12/17 00:59:32 Done.
+ // with a special extended path prefix.
+ static const CharType kExtendedPathPrefix[];
+#endif
+
FilePath();
FilePath(const FilePath& that);
explicit FilePath(const StringType& path);
@@ -307,6 +313,11 @@
FilePath NormalizeWindowsPathSeparators() const;
#endif
+#if defined(OS_WIN)
+ // On windows, returns whether or not path starts with extended path prefix.
Mark Mentovai 2010/12/16 19:48:19 path. Which path? The path? extended path prefix.
Kavita Kanetkar 2010/12/17 00:59:32 Done.
+ bool StartsWithExtendedPathPrefix() const;
Mark Mentovai 2010/12/16 19:48:19 A new function requires a unit test, even if it’s
Kavita Kanetkar 2010/12/17 00:59:32 Done.
+#endif
+
// Compare two strings in the same way the file system does.
// Note that these always ignore case, even on file systems that are case-
// sensitive. If case-sensitive comparison is ever needed, add corresponding
« no previous file with comments | « no previous file | base/file_path.cc » ('j') | base/file_util_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698