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

Issue 3347018: GTTF: Clean up DownloadFileManager (Closed)

Created:
10 years, 3 months ago by Paweł Hajdan Jr.
Modified:
9 years, 7 months ago
CC:
chromium-reviews, brettw-cc_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

GTTF: Clean up DownloadFileManager This removes a lot of duplication, locking, and thread jumping. Most of the operations run on the FILE thread, and we do not duplicate so much information. Each DownloadFile keeps track of its DownloadManager (each Profile has its own DownloadManager). This allows us to remove many maps from DownloadFileManager that were duplicating that information. There is still SaveFileManager, but hopefully I will be able to merge those two in small steps. Hopefully, this is http://codereview.chromium.org/3245005 done right. TEST=unit_tests, browser_tests, ui_tests BUG=48913 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=59139

Patch Set 1 #

Total comments: 2

Patch Set 2 : uncrashy #

Patch Set 3 : shutdowns #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -267 lines) Patch
M chrome/browser/download/base_file.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/download/base_file.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/download/base_file_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/download_file.h View 4 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/download/download_file.cc View 2 chunks +16 lines, -2 lines 0 comments Download
M chrome/browser/download/download_file_manager.h View 4 chunks +14 lines, -34 lines 0 comments Download
M chrome/browser/download/download_file_manager.cc View 12 chunks +91 lines, -206 lines 0 comments Download
M chrome/browser/download/download_manager.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/download/download_manager.cc View 2 chunks +12 lines, -10 lines 0 comments Download
M chrome/browser/download/download_manager_unittest.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/download/save_file.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profile.cc View 1 chunk +7 lines, -3 lines 0 comments Download
M chrome/browser/profile_impl.cc View 1 1 chunk +7 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/download_resource_handler.cc View 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Paweł Hajdan Jr.
This is a relanding of my earlier patch with the fix for the race condition, ...
10 years, 3 months ago (2010-09-08 18:32:55 UTC) #1
darin (slow to review)
OK, LGTM... w/ one possible issue: http://codereview.chromium.org/3347018/diff/1/7 File chrome/browser/download/download_file_manager.cc (right): http://codereview.chromium.org/3347018/diff/1/7#newcode128 chrome/browser/download/download_file_manager.cc:128: update_timer_.Start(base::TimeDelta::FromMilliseconds(kUpdatePeriodMs), one slight ...
10 years, 3 months ago (2010-09-09 16:04:35 UTC) #2
Paweł Hajdan Jr.
http://codereview.chromium.org/3347018/diff/1/7 File chrome/browser/download/download_file_manager.cc (right): http://codereview.chromium.org/3347018/diff/1/7#newcode128 chrome/browser/download/download_file_manager.cc:128: update_timer_.Start(base::TimeDelta::FromMilliseconds(kUpdatePeriodMs), On 2010/09/09 16:04:35, darin wrote: > one slight ...
10 years, 3 months ago (2010-09-09 17:19:41 UTC) #3
Nirnimesh
I'm not too familiar with the internals of this code, so please don't wait for ...
10 years, 3 months ago (2010-09-09 17:38:58 UTC) #4
darin (slow to review)
On Thu, Sep 9, 2010 at 10:19 AM, <phajdan.jr@chromium.org> wrote: > > http://codereview.chromium.org/3347018/diff/1/7 > File ...
10 years, 3 months ago (2010-09-09 18:30:08 UTC) #5
darin (slow to review)
LGTM
10 years, 3 months ago (2010-09-09 18:37:47 UTC) #6
Paweł Hajdan Jr.
I have sent a new Patch Set to fix trybot problems and it seems to ...
10 years, 3 months ago (2010-09-09 20:36:04 UTC) #7
darin (slow to review)
10 years, 3 months ago (2010-09-10 18:27:04 UTC) #8
LGTM

Powered by Google App Engine
This is Rietveld 408576698