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

Unified Diff: net/base/file_stream.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: 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: net/base/file_stream.cc
diff --git a/net/base/file_stream.cc b/net/base/file_stream.cc
index 1707fb755ec140ea653c42eff11ebe4834a95529..df18ad098b3a8318dac45624ae7ab328d5624527 100644
--- a/net/base/file_stream.cc
+++ b/net/base/file_stream.cc
@@ -78,8 +78,12 @@ int64 FileStream::Truncate(int64 bytes) {
return impl_.Truncate(bytes);
}
-int FileStream::Flush() {
- return impl_.Flush();
+int FileStream::Flush(const CompletionCallback& callback) {
+ return impl_.Flush(callback);
+}
+
+int FileStream::FlushSync() {
+ return impl_.FlushSync();
}
void FileStream::EnableErrorStatistics() {

Powered by Google App Engine
This is Rietveld 408576698