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

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: Address Darin's comments Created 9 years, 6 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..72591c2909c04f65e8b78163883f10c251be74b8 100644
--- a/base/file_util_proxy.h
+++ b/base/file_util_proxy.h
@@ -64,9 +64,16 @@ 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 additional
+ // file flags will be added on top of the default file flags which are:
+ // base::PLATFORM_FILE_CREATE_ALWAYS
+ // base::PLATFORM_FILE_WRITE
+ // base::PLATFORM_FILE_TEMPORARY.
+ // Set |additional_file_flags| to 0 for synchronous writes and set to
+ // base::PLATFORM_FILE_ASYNC to support asynchronous file operations.
static bool CreateTemporary(
scoped_refptr<MessageLoopProxy> message_loop_proxy,
+ int additional_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