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

Issue 7112011: Change DownloadProcessHandle to be more of an encapsulated class. (Closed)

Created:
9 years, 6 months ago by Randy Smith (Not in Mondays)
Modified:
9 years, 6 months ago
CC:
chromium-reviews, achuith+watch_chromium.org, rginda+watch_chromium.org, darin-cc_chromium.org, rdsmith+dwatch_chromium.org, brettw-cc_chromium.org, ahendrickson
Visibility:
Public.

Description

Change DownloadProcessHandle to be more of an encapsulated class. BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88585

Patch Set 1 #

Patch Set 2 : Get rid of cancel code in download_util. #

Total comments: 16

Patch Set 3 : Many changes; see comments. #

Patch Set 4 : Removed unneeded include file. #

Total comments: 12

Patch Set 5 : Incorporated all comments, went back to no-op base. #

Patch Set 6 : Fixed some minor, self-found nits. #

Patch Set 7 : Merged to LKGR. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -225 lines) Patch
M chrome/browser/download/download_create_info.h View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/download/download_create_info.cc View 1 2 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/download/download_file.h View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/download/download_file.cc View 1 2 3 4 5 3 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/download/download_file_manager.h View 1 2 2 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/download/download_file_manager.cc View 1 2 3 4 5 6 7 chunks +7 lines, -22 lines 0 comments Download
M chrome/browser/download/download_file_unittest.cc View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/download/download_item.h View 1 2 3 4 5 6 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/download/download_item.cc View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/download/download_manager.h View 1 2 3 4 5 4 chunks +3 lines, -12 lines 0 comments Download
M chrome/browser/download/download_manager.cc View 1 2 6 chunks +9 lines, -38 lines 0 comments Download
D chrome/browser/download/download_process_handle.h View 1 2 1 chunk +0 lines, -42 lines 0 comments Download
D chrome/browser/download/download_process_handle.cc View 1 2 1 chunk +0 lines, -39 lines 0 comments Download
A chrome/browser/download/download_request_handle.h View 1 2 3 4 1 chunk +63 lines, -0 lines 0 comments Download
A chrome/browser/download/download_request_handle.cc View 1 2 3 4 5 1 chunk +113 lines, -0 lines 0 comments Download
M chrome/browser/download/download_util.h View 1 2 3 4 5 6 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/download/download_util.cc View 1 2 3 4 5 6 1 chunk +0 lines, -20 lines 0 comments Download
M chrome/browser/renderer_host/download_resource_handler.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Randy Smith (Not in Mondays)
Pawel: We talked on Andy's CL about how much to encapsulate DownloadProcessHandle. I was going ...
9 years, 6 months ago (2011-06-03 18:23:39 UTC) #1
Paweł Hajdan Jr.
Nice change. Mostly minor comments. http://codereview.chromium.org/7112011/diff/2001/chrome/browser/download/download_file.cc File chrome/browser/download/download_file.cc (right): http://codereview.chromium.org/7112011/diff/2001/chrome/browser/download/download_file.cc#newcode33 chrome/browser/download/download_file.cc:33: void DownloadFile::CancelDownloadRequest() { nit: ...
9 years, 6 months ago (2011-06-04 08:58:51 UTC) #2
hendrickson_a
A couple of drive-by comments: http://codereview.chromium.org/7112011/diff/2001/chrome/browser/download/download_manager.cc File chrome/browser/download/download_manager.cc (left): http://codereview.chromium.org/7112011/diff/2001/chrome/browser/download/download_manager.cc#oldcode758 chrome/browser/download/download_manager.cc:758: // Cancel the network ...
9 years, 6 months ago (2011-06-04 16:01:45 UTC) #3
Randy Smith (Not in Mondays)
Ok, there are a fair number of changes in this version (I did warn you ...
9 years, 6 months ago (2011-06-07 22:41:11 UTC) #4
Paweł Hajdan Jr.
http://codereview.chromium.org/7112011/diff/9001/chrome/browser/download/download_request_handle.cc File chrome/browser/download/download_request_handle.cc (right): http://codereview.chromium.org/7112011/diff/9001/chrome/browser/download/download_request_handle.cc#newcode22 chrome/browser/download/download_request_handle.cc:22: { nit: Shouldn't that be on the previous line? ...
9 years, 6 months ago (2011-06-08 09:36:57 UTC) #5
Randy Smith (Not in Mondays)
On 2011/06/08 09:36:57, Paweł Hajdan Jr. wrote: http://codereview.chromium.org/7112011/diff/9001/chrome/browser/download/download_request_handle.cc#newcode124 > chrome/browser/download/download_request_handle.cc:124: bool > DownloadRequestHandle::IsNull() const { ...
9 years, 6 months ago (2011-06-08 12:52:13 UTC) #6
Paweł Hajdan Jr.
Okay, could you just go back to the code version that doesn't have those IsNull, ...
9 years, 6 months ago (2011-06-09 08:35:20 UTC) #7
Randy Smith (Not in Mondays)
Next revision; all comments incorporated, reverted to no-op if RDH null. Andy, you've been quiet. ...
9 years, 6 months ago (2011-06-09 13:17:43 UTC) #8
hendrickson_a
LGTM. I'd just been waiting for the dust to settle $-). Andy On 2011/06/09 13:17:43, ...
9 years, 6 months ago (2011-06-09 14:33:59 UTC) #9
Paweł Hajdan Jr.
LGTM
9 years, 6 months ago (2011-06-09 19:16:51 UTC) #10
commit-bot: I haz the power
9 years, 6 months ago (2011-06-09 21:08:31 UTC) #11
Change committed as 88585

Powered by Google App Engine
This is Rietveld 408576698