| Index: webkit/fileapi/local_file_stream_writer.h
|
| ===================================================================
|
| --- webkit/fileapi/local_file_stream_writer.h (revision 160294)
|
| +++ webkit/fileapi/local_file_stream_writer.h (working copy)
|
| @@ -30,10 +30,11 @@
|
| LocalFileStreamWriter(const FilePath& file_path, int64 initial_offset);
|
| virtual ~LocalFileStreamWriter();
|
|
|
| - // FileStreamWriteroverrides.
|
| + // FileStreamWriter overrides.
|
| virtual int Write(net::IOBuffer* buf, int buf_len,
|
| const net::CompletionCallback& callback) OVERRIDE;
|
| virtual int Cancel(const net::CompletionCallback& callback) OVERRIDE;
|
| + virtual int Flush(const net::CompletionCallback& callback) OVERRIDE;
|
|
|
| private:
|
| // Opens |file_path_| and if it succeeds, proceeds to InitiateSeek().
|
| @@ -61,6 +62,10 @@
|
| const net::CompletionCallback& callback);
|
| void DidWrite(const net::CompletionCallback& callback, int result);
|
|
|
| + // Flushes asynchronously to the file.
|
| + int InitiateFlush(const net::CompletionCallback& callback);
|
| + void DidFlush(const net::CompletionCallback& callback, int result);
|
| +
|
| // Stops the in-flight operation and calls |cancel_callback_| if it has been
|
| // set by Cancel() for the current operation.
|
| bool CancelIfRequested();
|
|
|