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

Issue 10912173: Replace the DownloadFileManager with direct ownership of DownloadFileImpl (Closed)

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

Description

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

Patch Set 1 #

Patch Set 2 : Original CL, sync'd past DownloadItem reorder. #

Patch Set 3 : Base for updated CL--includes CL 10918136 (Web store install) and 10916201 (Save Package Cancel Wor… #

Patch Set 4 : Initial new CL (same base rev (155400) as PS2 & PS3. #

Patch Set 5 : Sync to LKGR (r156083) #

Total comments: 42

Patch Set 6 : Incorporated Ben's comments. #

Patch Set 7 : Merged to LKGR (156367) and hopefully now correctly tracking backing branch. #

Patch Set 8 : Fix typo #

Patch Set 9 : Subtracted out CL 10950015. #

Patch Set 10 : Results of self code review. #

Patch Set 11 : Sync'd to LKGR. #

Total comments: 16

Patch Set 12 : Incorporated comments and sync'd to r158560 #

Total comments: 12

Patch Set 13 : Merged to LKGR (r159273) #

Total comments: 2

Patch Set 14 : Fix compile errors. #

Patch Set 15 : Incorporated comments. #

Patch Set 16 : Removed unneeded content:: specifiers. #

Patch Set 17 : Sync'd to LKGR (r160877) #

Total comments: 3

Patch Set 18 : Rebased onto http://codereview.chromium.org/11028131/ at r161345 #

Patch Set 19 : Incorporated Asanka's comment. #

Patch Set 20 : Fixed compile problem. #

Patch Set 21 : Ignore pauses once we've passed the commit point. #

Patch Set 22 : Merged past FileStream change (to r162442) #

Patch Set 23 : Fix trybot problems. #

Patch Set 24 : Fixes for mismtached interfaces. #

Patch Set 25 : Sync'd to LKGR (r162700) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1223 lines, -1845 lines) Patch
M chrome/browser/download/download_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 7 chunks +18 lines, -9 lines 0 comments Download
M content/browser/browser_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +1 line, -7 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +1 line, -4 lines 0 comments Download
M content/browser/download/base_file.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 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 10 11 12 13 14 15 16 17 18 2 chunks +5 lines, -6 lines 0 comments Download
M content/browser/download/download_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 17 chunks +106 lines, -91 lines 0 comments Download
M content/browser/download/download_create_info.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -7 lines 0 comments Download
M content/browser/download/download_file.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +14 lines, -9 lines 0 comments Download
M content/browser/download/download_file_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +11 lines, -6 lines 0 comments Download
M content/browser/download/download_file_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +15 lines, -15 lines 0 comments Download
M content/browser/download/download_file_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 5 chunks +26 lines, -28 lines 0 comments Download
M content/browser/download/download_file_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 8 chunks +53 lines, -63 lines 0 comments Download
D content/browser/download/download_file_manager.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -170 lines 0 comments Download
D content/browser/download/download_file_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -186 lines 0 comments Download
D content/browser/download/download_file_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -411 lines 0 comments Download
M content/browser/download/download_file_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 16 chunks +69 lines, -84 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 14 15 16 17 18 19 20 21 22 23 24 12 chunks +58 lines, -28 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 15 16 17 18 19 20 21 22 23 24 22 chunks +197 lines, -58 lines 0 comments Download
M content/browser/download/download_item_impl_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 4 chunks +16 lines, -3 lines 0 comments Download
M content/browser/download/download_item_impl_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +15 lines, -5 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 14 15 16 17 18 19 20 21 22 23 24 23 chunks +198 lines, -99 lines 0 comments Download
M content/browser/download/download_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 10 chunks +27 lines, -42 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 14 15 16 17 18 19 20 21 22 23 24 19 chunks +70 lines, -191 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 14 15 16 17 18 19 20 21 22 23 24 17 chunks +126 lines, -92 lines 0 comments Download
M content/browser/download/download_resource_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/download/mock_download_file.h View 1 2 3 4 5 6 7 8 2 chunks +1 line, -2 lines 0 comments Download
M content/browser/download/mock_download_file.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 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 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 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 10 11 12 13 14 15 16 17 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 14 15 16 17 18 19 20 21 22 23 24 2 chunks +1 line, -2 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +0 lines, -1 line 0 comments Download
A content/public/browser/download_destination_observer.h View 3 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 10 11 12 13 14 15 16 17 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 10 11 12 13 14 15 16 17 1 chunk +0 lines, -10 lines 0 comments Download
M content/public/test/test_file_error_injector.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 7 chunks +19 lines, -17 lines 0 comments Download
M content/public/test/test_file_error_injector.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 9 chunks +122 lines, -159 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Randy Smith (Not in Mondays)
Ok, this is the latest attempt to land the DownloadFileManager removal. Ben: Overall review. John: ...
8 years, 3 months ago (2012-09-12 17:56:59 UTC) #1
benjhayden
http://codereview.chromium.org/10912173/diff/12001/chrome/browser/download/download_browsertest.cc File chrome/browser/download/download_browsertest.cc (right): http://codereview.chromium.org/10912173/diff/12001/chrome/browser/download/download_browsertest.cc#newcode1608 chrome/browser/download/download_browsertest.cc:1608: downloads[0], base::Bind(WasAutoOpened)).WaitForEvent(); Why don't you need/want the address-of '&' ...
8 years, 3 months ago (2012-09-12 21:01:01 UTC) #2
asanka
On 2012/09/12 17:56:59, rdsmith wrote: > Ok, this is the latest attempt to land the ...
8 years, 3 months ago (2012-09-13 15:00:21 UTC) #3
Randy Smith (Not in Mondays)
Responses to comments here, but you may want to hold off on re-review, as I ...
8 years, 3 months ago (2012-09-13 20:15:12 UTC) #4
Randy Smith (Not in Mondays)
John, Ben, Asanka: PTAL? The major change here is that I've peeled off http://codereview.chromium.org/10950015/ to ...
8 years, 2 months ago (2012-09-23 23:46:06 UTC) #5
benjhayden
http://codereview.chromium.org/10912173/diff/20001/content/browser/browser_context.cc File content/browser/browser_context.cc (right): http://codereview.chromium.org/10912173/diff/20001/content/browser/browser_context.cc#newcode93 content/browser/browser_context.cc:93: scoped_ptr<DownloadItemFactory>(), Would it make more sense to not pass ...
8 years, 2 months ago (2012-09-24 17:43:27 UTC) #6
jam
lgtm
8 years, 2 months ago (2012-09-24 19:13:34 UTC) #7
asanka
http://codereview.chromium.org/10912173/diff/20001/content/browser/download/download_item_impl_delegate.cc File content/browser/download/download_item_impl_delegate.cc (right): http://codereview.chromium.org/10912173/diff/20001/content/browser/download/download_item_impl_delegate.cc#newcode30 content/browser/download/download_item_impl_delegate.cc:30: DownloadItemImpl* download_item) {} I know this is perfectly legitimate ...
8 years, 2 months ago (2012-09-24 20:43:53 UTC) #8
Randy Smith (Not in Mondays)
Asanka, Ben: PTAL? (My apologies about the combination of the sync and the comment incorporation; ...
8 years, 2 months ago (2012-09-26 21:01:05 UTC) #9
asanka
http://codereview.chromium.org/10912173/diff/30001/content/browser/download/download_file_factory.h File content/browser/download/download_file_factory.h (right): http://codereview.chromium.org/10912173/diff/30001/content/browser/download/download_file_factory.h#newcode33 content/browser/download/download_file_factory.h:33: const content::DownloadSaveInfo& save_info, Here's that extra content:: namespace again ...
8 years, 2 months ago (2012-09-28 20:22:42 UTC) #10
benjhayden
http://codereview.chromium.org/10912173/diff/30001/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (right): http://codereview.chromium.org/10912173/diff/30001/content/browser/download/download_item_impl.cc#newcode858 content/browser/download/download_item_impl.cc:858: if (!is_save_package_download_) { Factor this out into a method ...
8 years, 2 months ago (2012-09-28 20:49:41 UTC) #11
Randy Smith (Not in Mondays)
PTAL? http://codereview.chromium.org/10912173/diff/30001/content/browser/download/download_file_factory.h File content/browser/download/download_file_factory.h (right): http://codereview.chromium.org/10912173/diff/30001/content/browser/download/download_file_factory.h#newcode33 content/browser/download/download_file_factory.h:33: const content::DownloadSaveInfo& save_info, On 2012/09/28 20:22:42, asanka wrote: ...
8 years, 2 months ago (2012-10-09 20:20:19 UTC) #12
benjhayden
lgtm
8 years, 2 months ago (2012-10-09 20:36:39 UTC) #13
asanka
LGTM http://codereview.chromium.org/10912173/diff/43001/content/browser/download/base_file.cc File content/browser/download/base_file.cc (right): http://codereview.chromium.org/10912173/diff/43001/content/browser/download/base_file.cc#newcode212 content/browser/download/base_file.cc:212: const linked_ptr<net::FileStream>& file_stream, linked_ptr<> isn't thread safe. Can ...
8 years, 2 months ago (2012-10-10 16:04:40 UTC) #14
Randy Smith (Not in Mondays)
On 2012/10/10 16:04:40, asanka wrote: > LGTM > > http://codereview.chromium.org/10912173/diff/43001/content/browser/download/base_file.cc > File content/browser/download/base_file.cc (right): > ...
8 years, 2 months ago (2012-10-10 21:29:22 UTC) #15
Randy Smith (Not in Mondays)
Incorporated Asanka's comments, have all needed LGTMs, will throw at CQ when the file stream ...
8 years, 2 months ago (2012-10-16 18:30:28 UTC) #16
Randy Smith (Not in Mondays)
Ben: Could you review the changes since PS22? They're *almost* trivial, but not quite enough ...
8 years, 2 months ago (2012-10-18 00:03:14 UTC) #17
benjhayden
lgtm
8 years, 2 months ago (2012-10-18 13:01:48 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/10912173/63001
8 years, 2 months ago (2012-10-18 17:04:24 UTC) #19
commit-bot: I haz the power
Failed to apply patch for content/browser/download/download_item_impl.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years, 2 months ago (2012-10-18 17:04:48 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/10912173/53066
8 years, 2 months ago (2012-10-18 17:59:43 UTC) #21
commit-bot: I haz the power
Retried try job too often for step(s) sync_integration_tests
8 years, 2 months ago (2012-10-18 19:44:54 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/10912173/53066
8 years, 2 months ago (2012-10-18 20:04:18 UTC) #23
commit-bot: I haz the power
8 years, 2 months ago (2012-10-18 20:59:22 UTC) #24
Change committed as 162786

Powered by Google App Engine
This is Rietveld 408576698