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

Issue 14955002: [Resumption 6/11] Add a RESUMING_INTERNAL state to DownloadItem. (Closed)

Created:
7 years, 7 months ago by asanka
Modified:
7 years, 7 months ago
CC:
chromium-reviews, benjhayden+dwatch_chromium.org, darin-cc_chromium.org, jam, joi+watch-content_chromium.org
Visibility:
Public.

Description

[Downloads] Add a RESUMING_INTERNAL state to DownloadItem. When resuming an interrupted download, the download switches to this state after the resumption request has been dispatched. This prevents a second resumption request from being sent during the window between dispatching the first request and receiving a response. BUG=7648 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=200332

Patch Set 1 : #

Total comments: 14

Patch Set 2 : Formatting and comments on state transitions #

Patch Set 3 : Fix REMOVED race. #

Total comments: 4

Patch Set 4 : Address comments #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -70 lines) Patch
M content/browser/download/download_browsertest.cc View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
M content/browser/download/download_item_impl.h View 1 2 chunks +52 lines, -10 lines 0 comments Download
M content/browser/download/download_item_impl.cc View 1 2 9 chunks +85 lines, -42 lines 0 comments Download
M content/browser/download/download_manager_impl.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 2 3 3 chunks +24 lines, -16 lines 0 comments Download
M content/browser/download/download_resource_handler.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
asanka
7 years, 7 months ago (2013-05-08 21:25:20 UTC) #1
Randy Smith (Not in Mondays)
So as you probably expect :-}, my primary concern in this CL is about races, ...
7 years, 7 months ago (2013-05-09 01:00:56 UTC) #2
benjhayden
https://codereview.chromium.org/14955002/diff/2001/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (right): https://codereview.chromium.org/14955002/diff/2001/content/browser/download/download_item_impl.cc#newcode1676 content/browser/download/download_item_impl.cc:1676: } Thanks for fixing the above lines, please also ...
7 years, 7 months ago (2013-05-09 14:49:51 UTC) #3
asanka
https://codereview.chromium.org/14955002/diff/2001/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (right): https://codereview.chromium.org/14955002/diff/2001/content/browser/download/download_item_impl.cc#newcode1061 content/browser/download/download_item_impl.cc:1061: request_handle_->CancelRequest(); On 2013/05/09 01:00:57, rdsmith wrote: > Is there ...
7 years, 7 months ago (2013-05-09 16:54:33 UTC) #4
asanka
On 2013/05/09 01:00:56, rdsmith wrote: > So as you probably expect :-}, my primary concern ...
7 years, 7 months ago (2013-05-09 17:06:11 UTC) #5
Randy Smith (Not in Mondays)
Let's talk in person about filename determination races; I want to explore Cancel/Interrupt/Resume/FND transition. At ...
7 years, 7 months ago (2013-05-10 15:00:30 UTC) #6
Randy Smith (Not in Mondays)
As noted offline, LGTM conditional on fixing REMOVED race.
7 years, 7 months ago (2013-05-10 16:57:49 UTC) #7
asanka
Resolved REMOVED race. The changes are in download_manager_impl*, download_browsertest* and download_resource_handler.
7 years, 7 months ago (2013-05-10 21:08:15 UTC) #8
benjhayden
lgtm, one question https://codereview.chromium.org/14955002/diff/14001/content/browser/download/download_resource_handler.cc File content/browser/download/download_resource_handler.cc (right): https://codereview.chromium.org/14955002/diff/14001/content/browser/download/download_resource_handler.cc#newcode69 content/browser/download/download_resource_handler.cc:69: started_cb.Run(item, item ? net::OK : net::ERR_FAILED); ...
7 years, 7 months ago (2013-05-11 17:10:09 UTC) #9
Randy Smith (Not in Mondays)
LGTM. https://codereview.chromium.org/14955002/diff/14001/content/browser/download/download_manager_impl.cc File content/browser/download/download_manager_impl.cc (right): https://codereview.chromium.org/14955002/diff/14001/content/browser/download/download_manager_impl.cc#newcode390 content/browser/download/download_manager_impl.cc:390: download = downloads_[id.local()]; I'm tempted to suggest you ...
7 years, 7 months ago (2013-05-13 15:59:26 UTC) #10
asanka
Thanks! https://codereview.chromium.org/14955002/diff/14001/content/browser/download/download_manager_impl.cc File content/browser/download/download_manager_impl.cc (right): https://codereview.chromium.org/14955002/diff/14001/content/browser/download/download_manager_impl.cc#newcode390 content/browser/download/download_manager_impl.cc:390: download = downloads_[id.local()]; On 2013/05/13 15:59:26, rdsmith wrote: ...
7 years, 7 months ago (2013-05-13 19:19:01 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asanka@chromium.org/14955002/27001
7 years, 7 months ago (2013-05-15 14:19:00 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asanka@chromium.org/14955002/11004
7 years, 7 months ago (2013-05-15 14:23:10 UTC) #13
commit-bot: I haz the power
7 years, 7 months ago (2013-05-15 19:20:03 UTC) #14
Message was sent while issue was closed.
Change committed as 200332

Powered by Google App Engine
This is Rietveld 408576698