Support creating temporary files for sync file operations.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/7066067
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88884 0039d316-1c4b-4281-b951-d872f2087c98
CrOS-Libchrome-Original-Commit: 86ecf51b45fffd9d83247a4652f892af1c9c28a5
diff --git a/base/file_util_proxy.h b/base/file_util_proxy.h
index e0b04cb..72591c2 100644
--- a/base/file_util_proxy.h
+++ b/base/file_util_proxy.h
@@ -64,9 +64,16 @@
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.