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

Issue 2727143005: Change FindNextSliceToDownload() into FindSlicesToDownload() (Closed)

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

Description

Change FindNextSliceToDownload() into FindSlicesToDownload() For parallel downloads, we need a helper method to return a list of slices to download. This CL changes FindNextSliceToDownload() into FindSlicesToDownload(). And it will return an array of slices to be downloaded. This allows the ParallelDownloadJob to fork new request for each slice. BUG=644352 Review-Url: https://codereview.chromium.org/2727143005 Cr-Commit-Position: refs/heads/master@{#455221} Committed: https://chromium.googlesource.com/chromium/src/+/2bb2241a9aa5907ede2c661f1d4d1a8d9da017a1

Patch Set 1 #

Total comments: 12

Patch Set 2 : adding TODO and comments #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -50 lines) Patch
M content/browser/download/download_item_impl.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/download/download_job_factory.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/download/parallel_download_job.h View 1 3 chunks +12 lines, -1 line 0 comments Download
M content/browser/download/parallel_download_job.cc View 1 3 chunks +38 lines, -2 lines 2 comments Download
M content/browser/download/parallel_download_job_unittest.cc View 2 chunks +6 lines, -3 lines 0 comments Download
M content/browser/download/parallel_download_utils.h View 1 1 chunk +3 lines, -4 lines 0 comments Download
M content/browser/download/parallel_download_utils.cc View 1 chunk +15 lines, -14 lines 0 comments Download
M content/browser/download/parallel_download_utils_unittest.cc View 1 chunk +38 lines, -22 lines 2 comments Download

Messages

Total messages: 19 (4 generated)
qinmin
3 years, 9 months ago (2017-03-02 23:23:26 UTC) #2
qinmin
PTAL
3 years, 9 months ago (2017-03-02 23:23:35 UTC) #3
xingliu
Some discussion on how we use slice info. https://codereview.chromium.org/2727143005/diff/1/content/browser/download/parallel_download_job.cc File content/browser/download/parallel_download_job.cc (right): https://codereview.chromium.org/2727143005/diff/1/content/browser/download/parallel_download_job.cc#newcode38 content/browser/download/parallel_download_job.cc:38: std::vector<DownloadItem::ReceivedSlice> ...
3 years, 9 months ago (2017-03-03 18:44:15 UTC) #4
qinmin
https://codereview.chromium.org/2727143005/diff/1/content/browser/download/parallel_download_job.cc File content/browser/download/parallel_download_job.cc (right): https://codereview.chromium.org/2727143005/diff/1/content/browser/download/parallel_download_job.cc#newcode38 content/browser/download/parallel_download_job.cc:38: std::vector<DownloadItem::ReceivedSlice> slices_to_download = On 2017/03/03 18:44:15, xingliu wrote: > ...
3 years, 9 months ago (2017-03-03 19:32:35 UTC) #5
qinmin
https://codereview.chromium.org/2727143005/diff/1/content/browser/download/parallel_download_job.cc File content/browser/download/parallel_download_job.cc (right): https://codereview.chromium.org/2727143005/diff/1/content/browser/download/parallel_download_job.cc#newcode38 content/browser/download/parallel_download_job.cc:38: std::vector<DownloadItem::ReceivedSlice> slices_to_download = On 2017/03/03 19:32:35, qinmin wrote: > ...
3 years, 9 months ago (2017-03-03 19:44:34 UTC) #6
xingliu
In general sgtm, with some more discussion. https://codereview.chromium.org/2727143005/diff/1/content/browser/download/parallel_download_job.cc File content/browser/download/parallel_download_job.cc (right): https://codereview.chromium.org/2727143005/diff/1/content/browser/download/parallel_download_job.cc#newcode38 content/browser/download/parallel_download_job.cc:38: std::vector<DownloadItem::ReceivedSlice> slices_to_download ...
3 years, 9 months ago (2017-03-03 21:37:44 UTC) #7
qinmin
https://codereview.chromium.org/2727143005/diff/1/content/browser/download/parallel_download_job.cc File content/browser/download/parallel_download_job.cc (right): https://codereview.chromium.org/2727143005/diff/1/content/browser/download/parallel_download_job.cc#newcode46 content/browser/download/parallel_download_job.cc:46: if (slices_to_download.size() >= kParallelRequestCount) { On 2017/03/03 21:37:44, xingliu ...
3 years, 9 months ago (2017-03-03 22:09:44 UTC) #8
xingliu
lgtm
3 years, 9 months ago (2017-03-03 22:13:32 UTC) #9
qinmin
https://codereview.chromium.org/2727143005/diff/1/content/browser/download/parallel_download_utils.h File content/browser/download/parallel_download_utils.h (right): https://codereview.chromium.org/2727143005/diff/1/content/browser/download/parallel_download_utils.h#newcode15 content/browser/download/parallel_download_utils.h:15: // Find the first gap in an array of ...
3 years, 9 months ago (2017-03-03 22:20:10 UTC) #10
xingliu
On 2017/03/03 22:20:10, qinmin wrote: > https://codereview.chromium.org/2727143005/diff/1/content/browser/download/parallel_download_utils.h > File content/browser/download/parallel_download_utils.h (right): > > https://codereview.chromium.org/2727143005/diff/1/content/browser/download/parallel_download_utils.h#newcode15 > ...
3 years, 9 months ago (2017-03-03 23:31:50 UTC) #11
qinmin
On 2017/03/03 23:31:50, xingliu wrote: > On 2017/03/03 22:20:10, qinmin wrote: > > > https://codereview.chromium.org/2727143005/diff/1/content/browser/download/parallel_download_utils.h ...
3 years, 9 months ago (2017-03-03 23:54:23 UTC) #12
qinmin
ping, dtainor@, please take a look
3 years, 9 months ago (2017-03-06 16:24:47 UTC) #13
David Trainor- moved to gerrit
lgtm!
3 years, 9 months ago (2017-03-07 19:26:30 UTC) #14
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/2727143005/20001
3 years, 9 months ago (2017-03-07 20:01:44 UTC) #16
commit-bot: I haz the power
3 years, 9 months ago (2017-03-07 21:11:05 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/2bb2241a9aa5907ede2c661f1d4d...

Powered by Google App Engine
This is Rietveld 408576698