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

Unified Diff: net/base/file_stream_context.h

Issue 23500006: URLFetcher won't call delegate until file is closed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. Created 7 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_context.h
diff --git a/net/base/file_stream_context.h b/net/base/file_stream_context.h
index 15c25bb8d4a26cbfad355b0ec91e4f64c7ad5e0f..3ce8a5b6cdc9cb7decd553e50aa4cb05f66eac69 100644
--- a/net/base/file_stream_context.h
+++ b/net/base/file_stream_context.h
@@ -109,6 +109,8 @@ class FileStream::Context {
void CloseSync();
+ void CloseAsync(const CompletionCallback& callback);
+
void SeekAsync(Whence whence,
int64 offset,
const Int64CompletionCallback& callback);
@@ -191,6 +193,9 @@ class FileStream::Context {
// Flushes all data written to the stream.
IOResult FlushFileImpl();
+ // Closes the file.
+ IOResult CloseFileImpl();
+
#if defined(OS_WIN)
void IOCompletionIsPending(const CompletionCallback& callback, IOBuffer* buf);

Powered by Google App Engine
This is Rietveld 408576698