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

Issue 6932046: Added DownloadProcessHandle class. (Closed)

Created:
9 years, 7 months ago by ahendrickson
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., achuith+watch_chromium.org, rginda+watch_chromium.org, darin-cc_chromium.org, rdsmith+dwatch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Added DownloadProcessHandle class. BUG=None TEST=Download tests still pass. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=84967

Patch Set 1 #

Patch Set 2 : Renamed DownloadProcessInterface to DownloadProcessHandle. #

Patch Set 3 : download_process_handle #

Total comments: 29

Patch Set 4 : Removed code extraneous to this CL. #

Total comments: 16

Patch Set 5 : Changes per comments. #

Patch Set 6 : Removed DCHECKs from DownloadProcessHandle::GetTabContents(). #

Patch Set 7 : Moved process_handle_ initializer in DownloadItem constructor. #

Total comments: 19

Patch Set 8 : Cleanup per Pawel's comments. #

Total comments: 11

Patch Set 9 : Added DCHECK for thread safety. #

Patch Set 10 : Merged with trunk. #

Patch Set 11 : Added comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -134 lines) Patch
M chrome/browser/download/download_file.h View 1 2 3 4 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/download/download_file.cc View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -15 lines 0 comments Download
M chrome/browser/download/download_file_manager.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/download/download_file_manager.cc View 1 2 3 4 5 6 7 7 chunks +14 lines, -33 lines 0 comments Download
M chrome/browser/download/download_file_unittest.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/download/download_item.h View 1 2 3 4 5 6 7 8 9 4 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/download/download_item.cc View 1 2 3 4 5 6 7 8 9 4 chunks +23 lines, -14 lines 0 comments Download
M chrome/browser/download/download_manager.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/download/download_manager.cc View 1 2 3 4 5 6 7 8 9 9 chunks +24 lines, -29 lines 0 comments Download
A chrome/browser/download/download_process_handle.h View 1 2 3 4 5 6 7 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/download/download_process_handle.cc View 1 2 3 4 5 6 7 1 chunk +39 lines, -0 lines 0 comments Download
M chrome/browser/download/download_util.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/download/download_util.cc View 1 2 3 4 5 6 7 8 9 1 chunk +16 lines, -5 lines 0 comments Download
M chrome/browser/history/download_create_info.h View 1 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/history/download_create_info.cc View 1 3 chunks +6 lines, -12 lines 0 comments Download
M chrome/browser/renderer_host/download_resource_handler.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
ahendrickson
9 years, 7 months ago (2011-05-05 19:52:55 UTC) #1
Paweł Hajdan Jr.
Thank you for patience with my reviews, this is much better now. Could you comment ...
9 years, 7 months ago (2011-05-05 20:13:51 UTC) #2
Randy Smith (Not in Mondays)
Thank you for doing this. http://codereview.chromium.org/6932046/diff/2019/chrome/browser/download/download_file.h File chrome/browser/download/download_file.h (right): http://codereview.chromium.org/6932046/diff/2019/chrome/browser/download/download_file.h#newcode44 chrome/browser/download/download_file.h:44: // IDs for looking ...
9 years, 7 months ago (2011-05-05 20:25:34 UTC) #3
Randy Smith (Not in Mondays)
On 2011/05/05 20:13:51, Paweł Hajdan Jr. wrote: > Could you comment more on the CancelDownload ...
9 years, 7 months ago (2011-05-05 20:45:50 UTC) #4
ahendrickson
http://codereview.chromium.org/6932046/diff/2018/chrome/browser/download/download_file_manager.h File chrome/browser/download/download_file_manager.h (right): http://codereview.chromium.org/6932046/diff/2018/chrome/browser/download/download_file_manager.h#newcode50 chrome/browser/download/download_file_manager.h:50: #include "chrome/browser/download/download_file.h" On 2011/05/05 20:13:51, Paweł Hajdan Jr. wrote: ...
9 years, 7 months ago (2011-05-06 16:16:50 UTC) #5
Paweł Hajdan Jr.
Almost there, mostly nits. http://codereview.chromium.org/6932046/diff/2018/chrome/browser/download/download_process_handle.h File chrome/browser/download/download_process_handle.h (right): http://codereview.chromium.org/6932046/diff/2018/chrome/browser/download/download_process_handle.h#newcode32 chrome/browser/download/download_process_handle.h:32: int child_id_; On 2011/05/06 16:16:50, ...
9 years, 7 months ago (2011-05-06 18:04:41 UTC) #6
Randy Smith (Not in Mondays)
http://codereview.chromium.org/6932046/diff/4026/chrome/browser/download/download_file.cc File chrome/browser/download/download_file.cc (right): http://codereview.chromium.org/6932046/diff/4026/chrome/browser/download/download_file.cc#newcode35 chrome/browser/download/download_file.cc:35: download_util::CancelDownloadRequest(rdh, process_handle_); I don't want to put more stuff ...
9 years, 7 months ago (2011-05-09 00:57:45 UTC) #7
ahendrickson
http://codereview.chromium.org/6932046/diff/4026/chrome/browser/download/download_file.cc File chrome/browser/download/download_file.cc (right): http://codereview.chromium.org/6932046/diff/4026/chrome/browser/download/download_file.cc#newcode34 chrome/browser/download/download_file.cc:34: void DownloadFile::CancelDownloadRequest(ResourceDispatcherHost* rdh) { On 2011/05/06 18:04:42, Paweł Hajdan ...
9 years, 7 months ago (2011-05-09 15:57:31 UTC) #8
Paweł Hajdan Jr.
LGTM with comments (assuming all of them get applied). I'd prefer not passing DownloadProcessHandle by ...
9 years, 7 months ago (2011-05-09 19:47:30 UTC) #9
Randy Smith (Not in Mondays)
LGTM. http://codereview.chromium.org/6932046/diff/4026/chrome/browser/download/download_file.cc File chrome/browser/download/download_file.cc (right): http://codereview.chromium.org/6932046/diff/4026/chrome/browser/download/download_file.cc#newcode35 chrome/browser/download/download_file.cc:35: download_util::CancelDownloadRequest(rdh, process_handle_); On 2011/05/09 19:47:30, Paweł Hajdan Jr. ...
9 years, 7 months ago (2011-05-09 21:42:20 UTC) #10
ahendrickson
http://codereview.chromium.org/6932046/diff/4026/chrome/browser/download/download_file.cc File chrome/browser/download/download_file.cc (right): http://codereview.chromium.org/6932046/diff/4026/chrome/browser/download/download_file.cc#newcode34 chrome/browser/download/download_file.cc:34: void DownloadFile::CancelDownloadRequest(ResourceDispatcherHost* rdh) { On 2011/05/09 19:47:30, Paweł Hajdan ...
9 years, 7 months ago (2011-05-10 18:04:43 UTC) #11
Paweł Hajdan Jr.
LGTM http://codereview.chromium.org/6932046/diff/12001/chrome/browser/download/download_file_manager.h File chrome/browser/download/download_file_manager.h (right): http://codereview.chromium.org/6932046/diff/12001/chrome/browser/download/download_file_manager.h#newcode147 chrome/browser/download/download_file_manager.h:147: void ResumeDownloadRequest(DownloadProcessHandle process); On 2011/05/10 18:04:43, ahendrickson wrote: ...
9 years, 7 months ago (2011-05-10 18:58:04 UTC) #12
commit-bot: I haz the power
Try job failure for 6932046-26001 on linux: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux&number=25968
9 years, 7 months ago (2011-05-10 21:29:41 UTC) #13
commit-bot: I haz the power
Try job failure for 6932046-26001 on linux: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux&number=26003
9 years, 7 months ago (2011-05-10 22:47:47 UTC) #14
commit-bot: I haz the power
Try job failure for 6932046-26001 on mac: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac&number=26549
9 years, 7 months ago (2011-05-11 05:51:53 UTC) #15
commit-bot: I haz the power
9 years, 7 months ago (2011-05-11 12:14:15 UTC) #16
Change committed as 84967

Powered by Google App Engine
This is Rietveld 408576698