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

Unified Diff: base/file_util_proxy.h

Issue 7066067: Support creating temporary files for sync file operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: typo Created 9 years, 7 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_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util_proxy.h
diff --git a/base/file_util_proxy.h b/base/file_util_proxy.h
index e0b04cb220abd5259c031bef189b5d88ce49930f..72cb0b6231e42464d500dccda6dc74991150c6bd 100644
--- a/base/file_util_proxy.h
+++ b/base/file_util_proxy.h
@@ -64,9 +64,18 @@ class BASE_API FileUtilProxy {
CreateOrOpenCallback* callback);
// Creates a temporary file for writing. The path and an open file handle
- // are returned. It is invalid to pass NULL for the callback.
+ // are returned. It is invalid to pass NULL for the callback. The file
+ // flags should at least set base::PLATFORM_FILE_TEMPORARY and
+ // base::PLATFORM_FILE_WRITE and some flag related to the temporary file
+ // creation. A typical example would be:
+ // base::PLATFORM_FILE_CREATE_ALWAYS |
darin (slow to review) 2011/06/04 21:06:01 i think having to specify PLATFORM_FILE_TEMPORARY
Sam Kerner (Chrome) 2011/06/06 22:19:27 I looked in to doing this a while ago, and I think
+ // base::PLATFORM_FILE_WRITE |
+ // base::PLATFORM_FILE_TEMPORARY
+ // for synchronous writes. Add base::PLATFORM_FILE_ASYNC to support
+ // asynchronous file operations for net::FileStream.
static bool CreateTemporary(
scoped_refptr<MessageLoopProxy> message_loop_proxy,
+ int file_flags,
CreateTemporaryCallback* callback);
// Close the given file handle.
« no previous file with comments | « no previous file | base/file_util_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698