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 2829853011: Polish the cleaning up url request code for parallel download. (Closed)

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

Description

Polish the cleaning up url request code for parallel download. This CL addresses code review feedbacks in https://codereview.chromium.org/2811293004/. The flow to close a particular request is: DownloadFileImpl ==> DownloadItem ==> DownloadJob ==> Close url request. The flow is covered in ParallelDownloadComplete browser test. The reason that we do this, is because we terminate some of the requests in parallel download before it completes while not canceling the whole download. And after we null out the callback of ByteStreamReader, the actual url request is not closed. BUG=644352 Review-Url: https://codereview.chromium.org/2829853011 Cr-Commit-Position: refs/heads/master@{#467402} Committed: https://chromium.googlesource.com/chromium/src/+/aca52687045830c9b42e288df02ddcf4a01618f7

Patch Set 1 #

Total comments: 2

Patch Set 2 : Work on feedbacks. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -8 lines) Patch
M content/browser/download/download_file_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/download_file_impl.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/download/download_file_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/download_job.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/download/download_job.cc View 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/download/parallel_download_job.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
xingliu
Hi, PTAL, thanks.
3 years, 8 months ago (2017-04-22 00:06:05 UTC) #3
qinmin
lgtm % nit https://codereview.chromium.org/2829853011/diff/1/content/browser/download/parallel_download_job.cc File content/browser/download/parallel_download_job.cc (right): https://codereview.chromium.org/2829853011/diff/1/content/browser/download/parallel_download_job.cc#newcode104 content/browser/download/parallel_download_job.cc:104: if (it != workers_.end()) nit: you ...
3 years, 8 months ago (2017-04-24 21:27:31 UTC) #7
qinmin
lgtm % nit
3 years, 8 months ago (2017-04-24 21:27:32 UTC) #8
xingliu
Thanks. https://codereview.chromium.org/2829853011/diff/1/content/browser/download/parallel_download_job.cc File content/browser/download/parallel_download_job.cc (right): https://codereview.chromium.org/2829853011/diff/1/content/browser/download/parallel_download_job.cc#newcode104 content/browser/download/parallel_download_job.cc:104: if (it != workers_.end()) On 2017/04/24 21:27:31, qinmin ...
3 years, 8 months ago (2017-04-24 22:07:12 UTC) #9
asanka
lgtm
3 years, 8 months ago (2017-04-25 03:16:37 UTC) #10
David Trainor- moved to gerrit
lgtm
3 years, 8 months ago (2017-04-25 03:52:05 UTC) #11
xingliu
Thanks all for the review!
3 years, 8 months ago (2017-04-26 17:54:50 UTC) #12
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/2829853011/20001
3 years, 8 months ago (2017-04-26 17:55:51 UTC) #15
commit-bot: I haz the power
3 years, 8 months ago (2017-04-26 18:59:35 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/aca52687045830c9b42e288df02d...

Powered by Google App Engine
This is Rietveld 408576698