Index: webkit/fileapi/file_stream_writer.h |
diff --git a/webkit/fileapi/file_stream_writer.h b/webkit/fileapi/file_stream_writer.h |
index 967d501ffbce4959121576001116f4b70a199af2..f3f63987e7164b8a932c30932a37f473172de923 100644 |
--- a/webkit/fileapi/file_stream_writer.h |
+++ b/webkit/fileapi/file_stream_writer.h |
@@ -55,6 +55,16 @@ class FILEAPI_EXPORT_PRIVATE FileStreamWriter { |
// operation is dismissed immediately when Cancel() is called, and thus |
// will never be called. |
virtual int Cancel(const net::CompletionCallback& callback) = 0; |
+ |
+ // Flushes the data written so far. |
+ // |
+ // If the flush finished synchronously, it return net::OK. If the flush could |
+ // not be performed, it returns an error code. Otherwise, net::ERR_IO_PENDING |
+ // is returned, and the callback will be run on the thread where Flush() was |
+ // called when the flush has completed. |
+ // |
+ // It is invalid to call Flush while there is an in-flight async operation. |
+ virtual int Flush(const net::CompletionCallback& callback) = 0; |
}; |
} // namespace fileapi |