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

Issue 11028131: Shift passage of FileStream in downloads system to be by scoped_ptr<>. (Closed)

Created:
8 years, 2 months ago by Randy Smith (Not in Mondays)
Modified:
8 years, 2 months ago
Reviewers:
benjhayden, awong, sky
CC:
chromium-reviews, Avi (use Gerrit), mihaip-chromium-reviews_chromium.org, creis+watch_chromium.org, jam, dcheng, joi+watch-content_chromium.org, Aaron Boodman, rginda+watch_chromium.org, darin-cc_chromium.org, rdsmith+dwatch_chromium.org, ajwong+watch_chromium.org, stuartmorgan+watch_chromium.org
Visibility:
Public.

Description

Shift passage of FileStream in downloads system to be by scoped_ptr<>. http://codereview.chromium.org/10912173/ constructs the DownloadFile, and thus the BaseFile, on the UI thread and then passes it to the FILE thread. DownloadFile / BaseFile may be constructed with a FileStream to which to write the download. The FileStream cannot be passed by linked_ptr<> in this case, as that is not thread safe. BUG=123998 R=benjhayden@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162411

Patch Set 1 #

Patch Set 2 : Removed blank line. #

Total comments: 14

Patch Set 3 : Fixed various try bot problems. #

Total comments: 5

Patch Set 4 : Incorporated comments. #

Patch Set 5 : Fixed problems with DownloadErrorsFile. #

Patch Set 6 : Incorporated Al's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -218 lines) Patch
M chrome/browser/download/download_browsertest.cc View 1 2 3 4 5 5 chunks +22 lines, -17 lines 0 comments Download
M chrome/browser/extensions/api/downloads/downloads_api.cc View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/extensions/webstore_installer.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/plugins/plugin_installer.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 2 3 chunks +8 lines, -6 lines 0 comments Download
M content/browser/download/base_file.h View 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/download/base_file.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/download/base_file_unittest.cc View 1 2 3 9 chunks +32 lines, -40 lines 0 comments Download
M content/browser/download/download_browsertest.cc View 1 2 3 4 6 chunks +32 lines, -24 lines 0 comments Download
M content/browser/download/download_create_info.h View 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/download/download_create_info.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/download/download_file_factory.h View 2 chunks +1 line, -3 lines 0 comments Download
M content/browser/download/download_file_factory.cc View 1 2 3 1 chunk +7 lines, -3 lines 0 comments Download
M content/browser/download/download_file_impl.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/download/download_file_impl.cc View 1 2 3 1 chunk +6 lines, -6 lines 0 comments Download
M content/browser/download/download_file_manager.cc View 1 2 3 1 chunk +6 lines, -3 lines 0 comments Download
M content/browser/download/download_file_manager_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/download/download_file_unittest.cc View 1 2 3 2 chunks +6 lines, -8 lines 0 comments Download
M content/browser/download/download_item_impl.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/download/download_item_impl_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/download/download_resource_handler.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/download/download_resource_handler.cc View 1 2 4 chunks +6 lines, -8 lines 0 comments Download
M content/browser/download/drag_download_file.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/download/drag_download_file.cc View 2 chunks +7 lines, -6 lines 0 comments Download
M content/browser/download/save_file.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/buffered_resource_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_impl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host_impl.cc View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/web_contents/web_contents_drag_win.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_drag_source_gtk.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/web_contents/web_drag_source_mac.mm View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M content/public/browser/download_save_info.h View 2 chunks +4 lines, -1 line 0 comments Download
M content/public/browser/download_url_parameters.h View 1 2 4 chunks +6 lines, -4 lines 0 comments Download
M content/public/browser/download_url_parameters.cc View 3 chunks +8 lines, -4 lines 0 comments Download
M content/public/browser/resource_dispatcher_host.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/public/test/test_file_error_injector.cc View 1 2 3 4 4 chunks +34 lines, -24 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Randy Smith (Not in Mondays)
Ben: PTAL?
8 years, 2 months ago (2012-10-11 00:17:43 UTC) #1
Randy Smith (Not in Mondays)
Apologies--latest patch set includes try bot fixes *and* a sync to LKGR (r161345).
8 years, 2 months ago (2012-10-11 19:19:51 UTC) #2
benjhayden
http://codereview.chromium.org/11028131/diff/2001/chrome/browser/download/download_browsertest.cc File chrome/browser/download/download_browsertest.cc (right): http://codereview.chromium.org/11028131/diff/2001/chrome/browser/download/download_browsertest.cc#newcode661 chrome/browser/download/download_browsertest.cc:661: web_contents, url, save_info.Pass())); While you're doing this, do you ...
8 years, 2 months ago (2012-10-11 19:41:12 UTC) #3
Randy Smith (Not in Mondays)
PTAL. http://codereview.chromium.org/11028131/diff/2001/chrome/browser/download/download_browsertest.cc File chrome/browser/download/download_browsertest.cc (right): http://codereview.chromium.org/11028131/diff/2001/chrome/browser/download/download_browsertest.cc#newcode661 chrome/browser/download/download_browsertest.cc:661: web_contents, url, save_info.Pass())); On 2012/10/11 19:41:12, benjhayden_chromium wrote: ...
8 years, 2 months ago (2012-10-15 18:56:32 UTC) #4
awong
http://codereview.chromium.org/11028131/diff/5001/chrome/browser/download/download_browsertest.cc File chrome/browser/download/download_browsertest.cc (right): http://codereview.chromium.org/11028131/diff/5001/chrome/browser/download/download_browsertest.cc#newcode207 chrome/browser/download/download_browsertest.cc:207: void SetHiddenDownloadCallback(scoped_refptr<DownloadManager> download_manager, On 2012/10/15 18:56:33, rdsmith wrote: > ...
8 years, 2 months ago (2012-10-15 19:02:33 UTC) #5
benjhayden
lgtm
8 years, 2 months ago (2012-10-15 19:08:20 UTC) #6
Randy Smith (Not in Mondays)
awong: PTAL? http://codereview.chromium.org/11028131/diff/5001/chrome/browser/download/download_browsertest.cc File chrome/browser/download/download_browsertest.cc (right): http://codereview.chromium.org/11028131/diff/5001/chrome/browser/download/download_browsertest.cc#newcode207 chrome/browser/download/download_browsertest.cc:207: void SetHiddenDownloadCallback(scoped_refptr<DownloadManager> download_manager, On 2012/10/15 19:02:33, awong ...
8 years, 2 months ago (2012-10-16 17:24:35 UTC) #7
awong
LGTM http://codereview.chromium.org/11028131/diff/5001/chrome/browser/download/download_browsertest.cc File chrome/browser/download/download_browsertest.cc (right): http://codereview.chromium.org/11028131/diff/5001/chrome/browser/download/download_browsertest.cc#newcode207 chrome/browser/download/download_browsertest.cc:207: void SetHiddenDownloadCallback(scoped_refptr<DownloadManager> download_manager, On 2012/10/16 17:24:35, rdsmith wrote: ...
8 years, 2 months ago (2012-10-16 19:14:33 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/11028131/23001
8 years, 2 months ago (2012-10-16 21:25:31 UTC) #9
commit-bot: I haz the power
Presubmit check for 11028131-23001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-10-16 21:26:07 UTC) #10
Randy Smith (Not in Mondays)
@sky, I think you actually appear in all needed owners files. Quick scan/rubberstamp/contentful review as ...
8 years, 2 months ago (2012-10-16 21:36:51 UTC) #11
sky
What specific files do you need me to review? On Tue, Oct 16, 2012 at ...
8 years, 2 months ago (2012-10-16 22:58:27 UTC) #12
Randy Smith (Not in Mondays)
On 2012/10/16 22:58:27, sky wrote: > What specific files do you need me to review? ...
8 years, 2 months ago (2012-10-17 00:40:12 UTC) #13
sky
LGTM
8 years, 2 months ago (2012-10-17 13:43:58 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/11028131/23001
8 years, 2 months ago (2012-10-17 14:05:03 UTC) #15
commit-bot: I haz the power
8 years, 2 months ago (2012-10-17 15:32:14 UTC) #16
Change committed as 162411

Powered by Google App Engine
This is Rietveld 408576698