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

Unified Diff: base/sys_info.h

Issue 12212010: Truncate the download file name if it exceeds the filesystem limit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add Windows (UTF-16) support. Created 7 years, 10 months 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/sys_info_posix.cc » ('j') | chrome/browser/download/download_path_reservation_tracker.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sys_info.h
diff --git a/base/sys_info.h b/base/sys_info.h
index 97b17c4a0afd6db7ca1fbaab638faeb3615dbbd7..cff8c4708199c859c0d965812a5f278e6266c5fd 100644
--- a/base/sys_info.h
+++ b/base/sys_info.h
@@ -35,6 +35,10 @@ class BASE_EXPORT SysInfo {
// or -1 on failure.
static int64 AmountOfFreeDiskSpace(const FilePath& path);
+ // Return the maximum length of path component on the volume containing
+ // |path|, in the number of FilePath::CharType, or -1 on failure.
+ static int GetMaximumPathComponentLength(const FilePath& path);
asanka 2013/02/12 20:20:12 Why in sys_info.h? Have you considered putting thi
kinaba 2013/02/14 04:52:47 Fm, sounds better. Done.
+
// Returns system uptime in milliseconds.
static int64 Uptime();
« no previous file with comments | « no previous file | base/sys_info_posix.cc » ('j') | chrome/browser/download/download_path_reservation_tracker.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698