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

Unified Diff: content/browser/download/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/download_job.h ('k') | content/browser/download/download_stats.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_job.cc
diff --git a/content/browser/download/download_job.cc b/content/browser/download/download_job.cc
index cd7f6195af9fdc673b3a7e80d6f566892d03fc2b..b7f5dfc5075e7dbcbdfb2c5ea1df8879efa982d7 100644
--- a/content/browser/download/download_job.cc
+++ b/content/browser/download/download_job.cc
@@ -28,11 +28,6 @@ void DownloadJob::StartDownload() const {
download_item_->StartDownload();
}
-void DownloadJob::Interrupt(DownloadInterruptReason reason) {
- download_item_->InterruptAndDiscardPartialState(reason);
- download_item_->UpdateObservers();
-}
-
bool DownloadJob::AddByteStream(std::unique_ptr<ByteStreamReader> stream_reader,
int64_t offset,
int64_t length) {
@@ -51,17 +46,6 @@ bool DownloadJob::AddByteStream(std::unique_ptr<ByteStreamReader> stream_reader,
return true;
}
-void DownloadJob::SetPotentialFileLength(int64_t length) {
- DCHECK_CURRENTLY_ON(BrowserThread::UI);
- DownloadFile* download_file = download_item_->download_file_.get();
- if (download_file) {
- BrowserThread::PostTask(
- BrowserThread::FILE, FROM_HERE,
- base::Bind(&DownloadFile::SetPotentialFileLength,
- base::Unretained(download_file), length));
- }
-}
-
void DownloadJob::CancelRequestWithOffset(int64_t offset) {
NOTREACHED();
}
« no previous file with comments | « content/browser/download/download_job.h ('k') | content/browser/download/download_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698