Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(649)

Unified Diff: webkit/fileapi/file_stream_writer.h

Issue 10986045: Flush at the end of local file writing in FileWriter API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..e50acba7e852191eca4379064fcc86456e0cc559 100644
--- a/webkit/fileapi/file_stream_writer.h
+++ b/webkit/fileapi/file_stream_writer.h
@@ -55,6 +55,9 @@ 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.
+ virtual int Flush(const net::CompletionCallback& callback) = 0;
};
} // namespace fileapi

Powered by Google App Engine
This is Rietveld 408576698