|
|
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.
TEST=unit_tests, browser_tests, ui_tests
BUG= 48913
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=58196
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+130 lines, -256 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 |
+11 lines, -35 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_file_manager.cc
|
View
|
1
|
12 chunks |
+80 lines, -208 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_manager.cc
|
View
|
|
2 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_manager_unittest.cc
|
View
|
|
1 chunk |
+1 line, -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/renderer_host/download_resource_handler.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 4 (0 generated)
|