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

Issue 2786523002: Add control to use If-Range header for range request. (Closed)

Created:
3 years, 8 months ago by xingliu
Modified:
3 years, 8 months ago
CC:
chromium-reviews, asanka, jam, darin-cc_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add control to use If-Range header for range request. Currently If-Range is used in all half opened request, including normal download resumption, and parallel download subsequent requests. However parallel download subsequent requests may not necessarily use If-Range header. This CL adds a parameter to control if If-Range is sent in the request. Also refactored the code to attach partial request headers. BUG=706181, 644352 Review-Url: https://codereview.chromium.org/2786523002 Cr-Commit-Position: refs/heads/master@{#460930} Committed: https://chromium.googlesource.com/chromium/src/+/b791e0b97910713700bf8e4f3396521cff290d3b

Patch Set 1 #

Patch Set 2 : Handle 416 in worker layer. #

Patch Set 3 : Rebase. #

Total comments: 4

Patch Set 4 : Work on feedback. #

Patch Set 5 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -63 lines) Patch
M content/browser/download/download_request_core.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/download/download_request_core.cc View 1 2 3 4 3 chunks +62 lines, -54 lines 0 comments Download
M content/browser/download/download_request_core_unittest.cc View 5 chunks +44 lines, -5 lines 0 comments Download
M content/browser/download/download_worker.cc View 1 2 3 1 chunk +8 lines, -4 lines 0 comments Download
M content/browser/download/parallel_download_job.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/browser/download_url_parameters.h View 3 chunks +5 lines, -0 lines 0 comments Download
M content/public/browser/download_url_parameters.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 33 (17 generated)
xingliu
Hi, PTAL, thanks.
3 years, 8 months ago (2017-03-29 02:11:53 UTC) #4
qinmin
On 2017/03/29 02:11:53, xingliu wrote: > Hi, PTAL, thanks. Can we check the response code ...
3 years, 8 months ago (2017-03-29 17:09:38 UTC) #8
xingliu
On 2017/03/29 17:09:38, qinmin wrote: > On 2017/03/29 02:11:53, xingliu wrote: > > Hi, PTAL, ...
3 years, 8 months ago (2017-03-29 17:27:46 UTC) #9
xingliu
On 2017/03/29 17:09:38, qinmin wrote: > On 2017/03/29 02:11:53, xingliu wrote: > > Hi, PTAL, ...
3 years, 8 months ago (2017-03-29 17:58:23 UTC) #10
xingliu
To correct the comment here, the worker will accept 206, 412(precondition fail), 416(range not satisfied). ...
3 years, 8 months ago (2017-03-29 18:18:58 UTC) #11
asanka
lgtm
3 years, 8 months ago (2017-03-29 21:57:59 UTC) #16
David Trainor- moved to gerrit
lgtm
3 years, 8 months ago (2017-03-30 04:27:20 UTC) #17
qinmin
https://codereview.chromium.org/2786523002/diff/40001/content/browser/download/download_worker.cc File content/browser/download/download_worker.cc (right): https://codereview.chromium.org/2786523002/diff/40001/content/browser/download/download_worker.cc#newcode99 content/browser/download/download_worker.cc:99: if (create_info->result == {} needed as this if statement ...
3 years, 8 months ago (2017-03-30 05:21:43 UTC) #18
xingliu
Thanks for the feedback. PTAL. https://codereview.chromium.org/2786523002/diff/40001/content/browser/download/download_worker.cc File content/browser/download/download_worker.cc (right): https://codereview.chromium.org/2786523002/diff/40001/content/browser/download/download_worker.cc#newcode99 content/browser/download/download_worker.cc:99: if (create_info->result == On ...
3 years, 8 months ago (2017-03-30 17:16:47 UTC) #19
qinmin
lgtm
3 years, 8 months ago (2017-03-30 17:46:07 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2786523002/80001
3 years, 8 months ago (2017-03-30 21:00:24 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/399155)
3 years, 8 months ago (2017-03-30 21:25:28 UTC) #25
xingliu
@alexmos, please help take a look at change at: content/public/browser/download_url_parameters.h content/public/browser/download_url_parameters.cc Thanks.
3 years, 8 months ago (2017-03-30 21:56:41 UTC) #27
alexmos
content/public/browser/ LGTM
3 years, 8 months ago (2017-03-30 22:01:45 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2786523002/80001
3 years, 8 months ago (2017-03-30 22:33:55 UTC) #30
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 23:39:50 UTC) #33
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/b791e0b97910713700bf8e4f3396...

Powered by Google App Engine
This is Rietveld 408576698