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

Issue 10823406: Remove DownloadFileManager in favor of direct ownership of DownloadFiles. (Closed)

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

Description

Remove DownloadFileManager in favor of direct ownership of DownloadFiles. This CL is equivalent to CLs http://codereview.chromium.org/10799005 and http://codereview.chromium.org/10836293, which were previous attempts to land the same functionality. TBR=jam@chromium.org BUG=123998 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=153221

Patch Set 1 #

Patch Set 2 : 'Integrate' with SavePacakge. #

Total comments: 2

Patch Set 3 : Switched some DCHECKs to CHECKs. #

Patch Set 4 : Added weasel words to justify current notification source. #

Total comments: 8

Patch Set 5 : Incorporated comments and merged to LKGR. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1222 lines, -1711 lines) Patch
M chrome/browser/download/download_browsertest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/download/save_page_browsertest.cc View 1 2 3 4 10 chunks +83 lines, -14 lines 0 comments Download
M content/browser/browser_context.cc View 1 2 3 4 2 chunks +5 lines, -6 lines 0 comments Download
M content/browser/browser_main_loop.cc View 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 chunk +0 lines, -1 line 0 comments Download
M content/browser/download/download_file.h View 4 chunks +13 lines, -11 lines 0 comments Download
A content/browser/download/download_file_factory.h View 1 chunk +44 lines, -0 lines 0 comments Download
A content/browser/download/download_file_factory.cc View 1 chunk +32 lines, -0 lines 0 comments Download
M content/browser/download/download_file_impl.h View 5 chunks +22 lines, -25 lines 0 comments Download
M content/browser/download/download_file_impl.cc View 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 16 chunks +66 lines, -83 lines 0 comments Download
M content/browser/download/download_item_impl.h View 1 2 3 4 9 chunks +45 lines, -16 lines 0 comments Download
M content/browser/download/download_item_impl.cc View 1 2 3 4 18 chunks +199 lines, -45 lines 0 comments Download
M content/browser/download/download_item_impl_delegate.h View 1 chunk +12 lines, -2 lines 0 comments Download
M content/browser/download/download_item_impl_delegate.cc View 2 chunks +9 lines, -4 lines 0 comments Download
M content/browser/download/download_item_impl_unittest.cc View 22 chunks +165 lines, -78 lines 0 comments Download
M content/browser/download/download_manager_impl.h View 1 2 3 4 10 chunks +25 lines, -28 lines 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 2 3 4 21 chunks +62 lines, -172 lines 0 comments Download
M content/browser/download/download_manager_impl_unittest.cc View 1 2 3 4 19 chunks +100 lines, -82 lines 0 comments Download
M content/browser/download/download_resource_handler.cc View 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 8 chunks +46 lines, -15 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_impl.h View 3 chunks +0 lines, -8 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_impl.cc View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M content/content_tests.gypi View 1 chunk +0 lines, -1 line 0 comments Download
A content/public/browser/download_destination_observer.h View 1 chunk +37 lines, -0 lines 0 comments Download
M content/public/browser/download_manager.h View 1 chunk +0 lines, -23 lines 0 comments Download
M content/public/test/mock_download_manager.h View 1 chunk +2 lines, -12 lines 0 comments Download
M content/public/test/test_file_error_injector.h View 6 chunks +18 lines, -16 lines 0 comments Download
M content/public/test/test_file_error_injector.cc View 13 chunks +152 lines, -170 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Randy Smith (Not in Mondays)
Please note that this CL is now dependent on http://codereview.chromium.org/10831412/ (added some cancel/close tests to ...
8 years, 4 months ago (2012-08-21 21:52:55 UTC) #1
Randy Smith (Not in Mondays)
http://codereview.chromium.org/10823406/diff/3001/content/browser/download/save_package.cc File content/browser/download/save_package.cc (right): http://codereview.chromium.org/10823406/diff/3001/content/browser/download/save_package.cc#newcode1391 content/browser/download/save_package.cc:1391: // We're lying, but it's only a little white ...
8 years, 4 months ago (2012-08-21 22:01:21 UTC) #2
jam
lgtm
8 years, 4 months ago (2012-08-22 01:27:18 UTC) #3
Randy Smith (Not in Mondays)
http://codereview.chromium.org/10823406/diff/3001/content/browser/download/save_package.cc File content/browser/download/save_package.cc (right): http://codereview.chromium.org/10823406/diff/3001/content/browser/download/save_package.cc#newcode1391 content/browser/download/save_package.cc:1391: // We're lying, but it's only a little white ...
8 years, 4 months ago (2012-08-22 18:41:22 UTC) #4
benjhayden
http://codereview.chromium.org/10823406/diff/12001/chrome/browser/download/save_page_browsertest.cc File chrome/browser/download/save_page_browsertest.cc (left): http://codereview.chromium.org/10823406/diff/12001/chrome/browser/download/save_page_browsertest.cc#oldcode314 chrome/browser/download/save_page_browsertest.cc:314: CheckDownloadHistory(url, full_file_name, 1); // a.htm is 1 file. What ...
8 years, 4 months ago (2012-08-22 19:07:30 UTC) #5
Randy Smith (Not in Mondays)
My apologies for the merge combined with addressing comments. The "real work" I've done in ...
8 years, 4 months ago (2012-08-23 16:55:58 UTC) #6
benjhayden
lgtm
8 years, 4 months ago (2012-08-23 20:01:42 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/10823406/20002
8 years, 4 months ago (2012-08-24 13:43:30 UTC) #8
commit-bot: I haz the power
8 years, 4 months ago (2012-08-24 16:06:14 UTC) #9
Change committed as 153221

Powered by Google App Engine
This is Rietveld 408576698