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

Issue 10799005: Replace the DownloadFileManager with direct ownership (Closed)

Created:
8 years, 5 months ago by Randy Smith (Not in Mondays)
Modified:
8 years, 4 months ago
Reviewers:
asanka, benjhayden, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, rginda+watch_chromium.org, jam, rdsmith+dwatch_chromium.org, asanka
Visibility:
Public.

Description

Replace the DownloadFileManager with direct ownership of DownloadFileImpl by DownloadItemImpl. BUG=123998 R=benjhayden@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151351

Patch Set 1 #

Patch Set 2 : A lot of cleanup. #

Patch Set 3 : Results of self code review. #

Patch Set 4 : Sync to LKGR. #

Total comments: 26

Patch Set 5 : Fixed try job problems. #

Total comments: 6

Patch Set 6 : Incorporated comments. #

Total comments: 30

Patch Set 7 : Actually add download_destination_observer.h #

Patch Set 8 : Incorporated comments. #

Patch Set 9 : Believed fixed try job problems. #

Patch Set 10 : Merged to LKGR. #

Patch Set 11 : Fixed Windows compile error. #

Total comments: 14

Patch Set 12 : Incorporated comments and clarified lifetime of DownloadFile in the context of the DownloadItem. #

Total comments: 2

Patch Set 13 : Fixed include guard. #

Patch Set 14 : Merged to LKGR. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1012 lines, -1644 lines) Patch
M chrome/browser/download/download_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/browser_context.cc View 2 chunks +0 lines, -4 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -4 lines 0 comments Download
M content/browser/download/base_file.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/download/base_file.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/download/download_file.h View 1 2 3 4 5 4 chunks +13 lines, -11 lines 0 comments Download
A content/browser/download/download_file_factory.h View 1 2 3 4 5 6 7 1 chunk +44 lines, -0 lines 0 comments Download
A content/browser/download/download_file_factory.cc View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
M content/browser/download/download_file_impl.h View 1 2 3 4 5 5 chunks +22 lines, -25 lines 0 comments Download
M content/browser/download/download_file_impl.cc View 1 2 3 4 5 6 7 8 8 chunks +65 lines, -64 lines 0 comments Download
D content/browser/download/download_file_manager.h View 1 chunk +0 lines, -180 lines 0 comments Download
D content/browser/download/download_file_manager.cc View 1 chunk +0 lines, -227 lines 0 comments Download
D content/browser/download/download_file_manager_unittest.cc View 1 chunk +0 lines, -413 lines 0 comments Download
M content/browser/download/download_file_unittest.cc View 1 2 3 4 5 16 chunks +66 lines, -83 lines 0 comments Download
M content/browser/download/download_item_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +38 lines, -16 lines 0 comments Download
M content/browser/download/download_item_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 chunks +170 lines, -36 lines 0 comments Download
M content/browser/download/download_item_impl_delegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +12 lines, -2 lines 0 comments Download
M content/browser/download/download_item_impl_delegate.cc View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -4 lines 0 comments Download
M content/browser/download/download_item_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 22 chunks +165 lines, -78 lines 0 comments Download
M content/browser/download/download_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +23 lines, -27 lines 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 17 chunks +58 lines, -142 lines 0 comments Download
M content/browser/download/download_manager_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 18 chunks +60 lines, -81 lines 0 comments Download
M content/browser/download/download_resource_handler.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/download/mock_download_file.h View 2 chunks +1 line, -2 lines 0 comments Download
M content/browser/download/mock_download_file.cc View 1 chunk +10 lines, -2 lines 0 comments Download
M content/browser/download/save_package.cc View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -5 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_impl.h View 1 2 3 4 5 6 7 8 9 3 chunks +0 lines, -8 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -3 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -2 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
A content/public/browser/download_destination_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +37 lines, -0 lines 0 comments Download
M content/public/browser/download_manager.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -23 lines 0 comments Download
M content/public/test/mock_download_manager.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -12 lines 0 comments Download
M content/public/test/test_file_error_injector.h View 1 6 chunks +18 lines, -16 lines 0 comments Download
M content/test/test_file_error_injector.cc View 1 2 3 4 5 6 7 8 9 10 13 chunks +152 lines, -170 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
Randy Smith (Not in Mondays)
PTAL: * Ben: Primary reviewer, look at everything. * John: content/* except for content/browser/downloads and ...
8 years, 5 months ago (2012-07-24 19:59:40 UTC) #1
Randy Smith (Not in Mondays)
On 2012/07/24 19:59:40, rdsmith wrote: > PTAL: > * Ben: Primary reviewer, look at everything. ...
8 years, 5 months ago (2012-07-24 20:13:22 UTC) #2
jam
nice, just a nit about name http://codereview.chromium.org/10799005/diff/7001/content/public/browser/download_destination_controller.h File content/public/browser/download_destination_controller.h (right): http://codereview.chromium.org/10799005/diff/7001/content/public/browser/download_destination_controller.h#newcode14 content/public/browser/download_destination_controller.h:14: // Class that ...
8 years, 5 months ago (2012-07-24 20:47:02 UTC) #3
Randy Smith (Not in Mondays)
On 2012/07/24 20:47:02, John Abd-El-Malek wrote: http://codereview.chromium.org/10799005/diff/7001/content/public/browser/download_destination_controller.h#newcode23 > content/public/browser/download_destination_controller.h:23: class > DownloadDestinationController { > nit: ...
8 years, 5 months ago (2012-07-24 21:08:54 UTC) #4
sky
John is a reviewer for all of content, so no need to have both him ...
8 years, 5 months ago (2012-07-24 22:11:52 UTC) #5
Randy Smith (Not in Mondays)
On 2012/07/24 22:11:52, sky wrote: > John is a reviewer for all of content, so ...
8 years, 5 months ago (2012-07-24 22:14:39 UTC) #6
benjhayden
http://codereview.chromium.org/10799005/diff/7001/content/browser/download/download_file.h File content/browser/download/download_file.h (right): http://codereview.chromium.org/10799005/diff/7001/content/browser/download/download_file.h#newcode27 content/browser/download/download_file.h:27: // be DOWNLOAD_INTERRUPT_REASON_NONE; on a failed rename, it will ...
8 years, 5 months ago (2012-07-25 15:19:15 UTC) #7
Randy Smith (Not in Mondays)
PTAL. John, if you don't have any comments on the */test directories, could you ack ...
8 years, 4 months ago (2012-07-30 01:07:23 UTC) #8
jam
(ugh, I swear I typed my reply but I must have not sent it) On ...
8 years, 4 months ago (2012-07-31 22:52:03 UTC) #9
benjhayden
Can you update the pathways graphs and link to them? I'm having trouble keeping track ...
8 years, 4 months ago (2012-08-01 18:00:18 UTC) #10
benjhayden
http://codereview.chromium.org/10799005/diff/21002/content/browser/download/download_manager_impl_unittest.cc File content/browser/download/download_manager_impl_unittest.cc (right): http://codereview.chromium.org/10799005/diff/21002/content/browser/download/download_manager_impl_unittest.cc#newcode84 content/browser/download/download_manager_impl_unittest.cc:84: scoped_ptr<content::DownloadFile> download_file) { OVERRIDE? http://codereview.chromium.org/10799005/diff/21002/content/browser/download/download_manager_impl_unittest.cc#newcode209 content/browser/download/download_manager_impl_unittest.cc:209: // Save to ...
8 years, 4 months ago (2012-08-01 18:06:01 UTC) #11
Randy Smith (Not in Mondays)
Results of in-person discussion between Ben & I. http://codereview.chromium.org/10799005/diff/21002/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (right): http://codereview.chromium.org/10799005/diff/21002/content/browser/download/download_item_impl.cc#newcode125 content/browser/download/download_item_impl.cc:125: // ...
8 years, 4 months ago (2012-08-02 20:41:23 UTC) #12
Randy Smith (Not in Mondays)
On 2012/07/31 22:52:03, John Abd-El-Malek wrote: > (ugh, I swear I typed my reply but ...
8 years, 4 months ago (2012-08-02 23:07:54 UTC) #13
Randy Smith (Not in Mondays)
I've incorporated all comments; PTAL. Items still on my plate: * Fix two try job ...
8 years, 4 months ago (2012-08-03 17:32:44 UTC) #14
Randy Smith (Not in Mondays)
I've fixed the try job problems and merged to LKGR. I think this is getting ...
8 years, 4 months ago (2012-08-05 05:35:09 UTC) #15
jam
(I mostly looked at my files, but I scanned a couple of other headers and ...
8 years, 4 months ago (2012-08-06 18:16:37 UTC) #16
benjhayden
Please also address John's comments. http://codereview.chromium.org/10799005/diff/33001/content/browser/download/download_file.h File content/browser/download/download_file.h (right): http://codereview.chromium.org/10799005/diff/33001/content/browser/download/download_file.h#newcode77 content/browser/download/download_file.h:77: static int GetNumberOfDownloadFiles(); On ...
8 years, 4 months ago (2012-08-10 15:56:41 UTC) #17
Randy Smith (Not in Mondays)
PTAL. I think this is ready for landing. http://codereview.chromium.org/10799005/diff/33001/content/browser/download/download_file.h File content/browser/download/download_file.h (right): http://codereview.chromium.org/10799005/diff/33001/content/browser/download/download_file.h#newcode77 content/browser/download/download_file.h:77: static ...
8 years, 4 months ago (2012-08-10 20:09:00 UTC) #18
benjhayden
LGTM Thanks!
8 years, 4 months ago (2012-08-10 20:16:01 UTC) #19
jam
lgtm http://codereview.chromium.org/10799005/diff/21009/content/public/browser/download_destination_observer.h File content/public/browser/download_destination_observer.h (right): http://codereview.chromium.org/10799005/diff/21009/content/public/browser/download_destination_observer.h#newcode5 content/public/browser/download_destination_observer.h:5: #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_DESTINATION_OBSERVER_H_ nit: add PUBLIC_
8 years, 4 months ago (2012-08-10 23:46:05 UTC) #20
Randy Smith (Not in Mondays)
http://codereview.chromium.org/10799005/diff/21009/content/public/browser/download_destination_observer.h File content/public/browser/download_destination_observer.h (right): http://codereview.chromium.org/10799005/diff/21009/content/public/browser/download_destination_observer.h#newcode5 content/public/browser/download_destination_observer.h:5: #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_DESTINATION_OBSERVER_H_ On 2012/08/10 23:46:05, John Abd-El-Malek wrote: > ...
8 years, 4 months ago (2012-08-13 18:07:40 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/10799005/15008
8 years, 4 months ago (2012-08-13 18:59:51 UTC) #22
commit-bot: I haz the power
8 years, 4 months ago (2012-08-13 21:21:29 UTC) #23
Change committed as 151351

Powered by Google App Engine
This is Rietveld 408576698