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

Unified Diff: base/file_util.h

Issue 541022: Fix the case where the browser livelocks if we cannot open a file. (Closed)
Patch Set: Created 10 years, 11 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/file_util_posix.cc » ('j') | base/file_util_posix.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util.h
diff --git a/base/file_util.h b/base/file_util.h
index 543a86c7779d608c39aabe8cc6d9ddbcff7d283d..094b54bd3bb1dc1ba70ec7d72c5d74e1b3206abb 100644
--- a/base/file_util.h
+++ b/base/file_util.h
@@ -161,6 +161,9 @@ bool CopyDirectory(const std::wstring& from_path, const std::wstring& to_path,
// false otherwise.
bool PathExists(const FilePath& path);
+// Returns true if the given path is readable by the user, false otherwise.
+bool PathIsReadable(const FilePath& path);
+
// Returns true if the given path is writable by the user, false otherwise.
bool PathIsWritable(const FilePath& path);
« no previous file with comments | « no previous file | base/file_util_posix.cc » ('j') | base/file_util_posix.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698