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

Unified Diff: base/files/file.h

Issue 1017243002: Add File::Duplicate to duplicate a file handle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: oops Created 5 years, 9 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/files/file_posix.cc » ('j') | base/files/file_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/file.h
diff --git a/base/files/file.h b/base/files/file.h
index 7b6366c1c2edaa2c6ccb695f2f075ff83f0d002b..c4bff20bcde7718a45ff34e389e51a8b174d3ffb 100644
--- a/base/files/file.h
+++ b/base/files/file.h
@@ -287,6 +287,10 @@ class BASE_EXPORT File {
// Unlock a file previously locked.
Error Unlock();
+ // Returns a new handle to this file for use within the current process. On
rvargas (doing something else) 2015/03/18 20:56:42 nit: handle -> object
grt (UTC plus 2) 2015/03/19 03:31:02 Done.
+ // POSIX, only the original File will obey FLAG_DELETE_ON_CLOSE.
rvargas (doing something else) 2015/03/18 20:56:42 I don't think this behavior is posix exclusive...
grt (UTC plus 2) 2015/03/18 21:06:24 I singled out POSIX here because "delete on close"
rvargas (doing something else) 2015/03/18 21:29:58 sounds good
grt (UTC plus 2) 2015/03/19 03:31:02 Done.
+ File Duplicate();
+
bool async() const { return async_; }
#if defined(OS_WIN)
« no previous file with comments | « no previous file | base/files/file_posix.cc » ('j') | base/files/file_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698