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. |