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

Unified Diff: content/browser/download/parallel_download_job.cc

Issue 2872943003: Reduce unnecessary download interruptions due to parallel requests (Closed)
Patch Set: more restrictions on DOWNLOAD_INTERRUPT_REASON_SERVER_NO_RANGE Created 3 years, 7 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 | « content/browser/download/parallel_download_job.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/parallel_download_job.cc
diff --git a/content/browser/download/parallel_download_job.cc b/content/browser/download/parallel_download_job.cc
index 5f282c3536dc091899a7ad58f328480ef4cc4f8f..e83df49104f09f0bc824521a7f51cf6a5268da14 100644
--- a/content/browser/download/parallel_download_job.cc
+++ b/content/browser/download/parallel_download_job.cc
@@ -128,21 +128,6 @@ void ParallelDownloadJob::OnByteStreamReady(
}
}
-void ParallelDownloadJob::OnServerResponseError(
- DownloadWorker* worker,
- DownloadInterruptReason reason) {
- // TODO(xingliu): Consider to let the original request to cover the full
- // content if the sub-requests get invalid response. Consider retry on certain
- // error.
- if (worker->length() == DownloadSaveInfo::kLengthFullContent &&
- reason ==
- DownloadInterruptReason::DOWNLOAD_INTERRUPT_REASON_SERVER_NO_RANGE) {
- SetPotentialFileLength(worker->offset());
- return;
- }
- DownloadJob::Interrupt(reason);
-}
-
void ParallelDownloadJob::BuildParallelRequests() {
DCHECK(!requests_sent_);
DCHECK(!is_paused());
« no previous file with comments | « content/browser/download/parallel_download_job.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698