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

Unified Diff: content/browser/download/download_file_impl.h

Issue 2748103014: Allow the initial request to take over failed parallel requests. (Closed)
Patch Set: rebase again Created 3 years, 9 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 | « no previous file | content/browser/download/download_file_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_file_impl.h
diff --git a/content/browser/download/download_file_impl.h b/content/browser/download/download_file_impl.h
index 41db8d9353019f115644a72de9285d8a01b3e3f4..c6a4ae20e7c7febea6ef04e71e3de130913ae9f9 100644
--- a/content/browser/download/download_file_impl.h
+++ b/content/browser/download/download_file_impl.h
@@ -213,6 +213,14 @@ class CONTENT_EXPORT DownloadFileImpl : public DownloadFile {
// Otherwise, return the current file size.
int64_t TotalBytesReceived() const;
+ // Helper method to handle stream error
+ void HandleStreamError(SourceStream* source_stream,
+ DownloadInterruptReason reason);
+
+ // Given a SourceStream object, returns its neighbor that preceds it if
+ // SourceStreams are ordered by their offsets
+ SourceStream* FindPrecedingNeighbor(SourceStream* source_stream);
+
net::NetLogWithSource net_log_;
// The base file instance.
« no previous file with comments | « no previous file | content/browser/download/download_file_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698