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

Issue 2783473002: Fix issues and feature polishing for parallel download. (Closed)

Created:
3 years, 9 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

Fix issues and feature polishing for parallel download. 1. Fix a bug in ParallelDownloadJob that the initial request may generate a ReceivedSlice, and currently it will hit a DCHECK. 2. Cover the edge cases that there might be holes before the initial request offset, now we also create requests for them, but don't chunk more slices in this scenario. (Talked offline, we might not need this logic when some later CL checked in, but leave this here for now.) 3. When chunk into smaller slices, also consider minimum slice size Finch configuration. So we won't have extremely small new slices. BUG=644352 Review-Url: https://codereview.chromium.org/2783473002 Cr-Commit-Position: refs/heads/master@{#460858} Committed: https://chromium.googlesource.com/chromium/src/+/d6d05e2a6461b0886140633e9a98a01e7c780dd5

Patch Set 1 #

Patch Set 2 : Fix browser_test. #

Patch Set 3 : Rebase. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -78 lines) Patch
M content/browser/download/download_create_info.h View 1 chunk +6 lines, -3 lines 2 comments Download
M content/browser/download/download_request_core.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/download/parallel_download_job.h View 2 chunks +6 lines, -2 lines 0 comments Download
M content/browser/download/parallel_download_job.cc View 3 chunks +40 lines, -19 lines 0 comments Download
M content/browser/download/parallel_download_job_unittest.cc View 8 chunks +93 lines, -31 lines 0 comments Download
M content/browser/download/parallel_download_utils.h View 1 chunk +9 lines, -5 lines 0 comments Download
M content/browser/download/parallel_download_utils.cc View 1 chunk +17 lines, -18 lines 0 comments Download
M content/browser/download/parallel_download_utils_unittest.cc View 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (14 generated)
David Trainor- moved to gerrit
lgtm
3 years, 8 months ago (2017-03-29 00:27:43 UTC) #7
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/2783473002/40001
3 years, 8 months ago (2017-03-30 19:03:19 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/d6d05e2a6461b0886140633e9a98a01e7c780dd5
3 years, 8 months ago (2017-03-30 19:57:19 UTC) #17
qinmin
https://codereview.chromium.org/2783473002/diff/40001/content/browser/download/download_create_info.h File content/browser/download/download_create_info.h (right): https://codereview.chromium.org/2783473002/diff/40001/content/browser/download/download_create_info.h#newcode74 content/browser/download/download_create_info.h:74: int64_t length; the initial request is always half open, ...
3 years, 8 months ago (2017-03-31 17:56:09 UTC) #18
xingliu
3 years, 8 months ago (2017-03-31 21:46:11 UTC) #19
Message was sent while issue was closed.
Sorry that landed this CL already, address the comment in another CL.

https://codereview.chromium.org/2783473002/diff/40001/content/browser/downloa...
File content/browser/download/download_create_info.h (right):

https://codereview.chromium.org/2783473002/diff/40001/content/browser/downloa...
content/browser/download/download_create_info.h:74: int64_t length;
On 2017/03/31 17:56:09, qinmin wrote:
> the initial request is always half open, right? why we need this?

Done, addressed in
https://codereview.chromium.org/2789623005/

Also removed the logic to send requests for slices before initial request. Just
use a DCHECK now.

Powered by Google App Engine
This is Rietveld 408576698