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

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

Issue 2689373003: Introduce ParallelDownloadJob. (Closed)
Patch Set: nits. Created 3 years, 10 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: content/browser/download/download_request_core.cc
diff --git a/content/browser/download/download_request_core.cc b/content/browser/download/download_request_core.cc
index 699f771da1d912681479102c05b1887f471ad664..a99127c5146a30ab68c160ad97990d4ccaf863bf 100644
--- a/content/browser/download/download_request_core.cc
+++ b/content/browser/download/download_request_core.cc
@@ -351,6 +351,9 @@ bool DownloadRequestCore::OnResponseStarted(
if (!headers->GetMimeType(&create_info->original_mime_type))
create_info->original_mime_type.clear();
+
+ create_info->accept_range =
+ headers->HasHeaderValue("Accept-Ranges", "bytes");
}
// Blink verifies that the requester of this download is allowed to set a
« no previous file with comments | « content/browser/download/download_manager_impl_unittest.cc ('k') | content/browser/download/download_worker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698