Chromium Code Reviews| Index: net/base/file_stream.h |
| diff --git a/net/base/file_stream.h b/net/base/file_stream.h |
| index 0fb3fb265697f317df69a0915979035bd2970461..11a8eea07058e22a40d1cf91a990a2f3eaa4fd6b 100644 |
| --- a/net/base/file_stream.h |
| +++ b/net/base/file_stream.h |
| @@ -81,6 +81,11 @@ class NET_EXPORT FileStream { |
| // automatically closed when FileStream is destructed. |
| virtual int OpenSync(const base::FilePath& path, int open_flags); |
| + // Closes the file. If the file si open asynchronously, returns ERR_IO_PENDING |
|
Sorin Jianu
2013/09/05 19:59:12
s/si/is/
waffles
2013/09/05 20:31:52
Done.
|
| + // and closes the file asynchronously, calling |callback| when done. |
| + // Otherwise, closes the file immediately and returns OK. |
| + virtual int Close(const CompletionCallback& callback); |
| + |
| // Returns true if Open succeeded and Close has not been called. |
| virtual bool IsOpen() const; |