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

Unified Diff: webkit/chromeos/fileapi/remote_file_stream_writer.cc

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: Clean up. 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
« no previous file with comments | « webkit/chromeos/fileapi/remote_file_stream_writer.h ('k') | webkit/fileapi/file_stream_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/chromeos/fileapi/remote_file_stream_writer.cc
diff --git a/webkit/chromeos/fileapi/remote_file_stream_writer.cc b/webkit/chromeos/fileapi/remote_file_stream_writer.cc
index fd9ab532c4c776900dfa7868c9b6c87b682ae94f..187a79aabb0bc6071e21255e124951de46d4d6e6 100644
--- a/webkit/chromeos/fileapi/remote_file_stream_writer.cc
+++ b/webkit/chromeos/fileapi/remote_file_stream_writer.cc
@@ -104,6 +104,12 @@ int RemoteFileStreamWriter::Cancel(const net::CompletionCallback& callback) {
return net::ERR_UNEXPECTED;
}
+int RemoteFileStreamWriter::Flush(const net::CompletionCallback& callback) {
+ // For remote file writer, Flush() is a no-op. Synchronization to the remote
+ // server is not done until the file is closed.
+ return net::OK;
+}
+
void RemoteFileStreamWriter::InvokePendingCancelCallback(int result) {
net::CompletionCallback callback = pending_cancel_callback_;
pending_cancel_callback_.Reset();
« no previous file with comments | « webkit/chromeos/fileapi/remote_file_stream_writer.h ('k') | webkit/fileapi/file_stream_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698