Index: net/base/file_stream.h |
=================================================================== |
--- net/base/file_stream.h (revision 147715) |
+++ net/base/file_stream.h (working copy) |
@@ -40,7 +40,9 @@ |
// |net_log| is the net log pointer to use to create a |BoundNetLog|. May be |
// NULL if logging is not needed. |
// The already opened file will not be automatically closed when FileStream |
- // is destructed. |
+ // is destroyed. |
+ // Note: new FileStream object takes ownership of the PlatformFile and will |
+ // close it on destruction. |
FileStream(base::PlatformFile file, int flags, net::NetLog* net_log); |
// If the file stream was opened with Open() or OpenSync(), the underlying |
@@ -61,8 +63,8 @@ |
// Call this method to close the FileStream synchronously. |
// It is OK to call CloseSync() multiple times. Redundant calls are |
- // ignored. Note that if there are any pending async operations, they'll |
- // be aborted. |
+ // ignored. Note that if there are any pending async operations, then |
+ // behavior of this method is equivalent to CloseAndCancelAsync(). |
willchan no longer on Chromium
2012/07/27 21:19:47
You can undo this comment change, right?
|
virtual void CloseSync(); |
// Call this method to open the FileStream asynchronously. The remaining |