|
[Downloads] Allow acquiring dangerous download file.
A dangerous download can be accepted by the user or rejected. If
rejected, the downloaded file used to be deleted. This change adds
DownloadItem::AcquireFileAndDeleteDownload() which allows the caller to
acquire the dangerous file.
The intended consumer of this feature is SafeBrowsing where the caller
may want to acquire a dangerous file that's being discarded for the
purpose of further analysis.
Also change the logic during shutdown to no longer delete dangerous
downloads, but to cancel them.
TBR=rdsmith
BUG= 244604
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202925
Total comments: 2
Total comments: 1
Total comments: 6
Total comments: 2
Total comments: 12
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+261 lines, -151 lines) |
Patch |
 |
M |
chrome/browser/automation/testing_automation_provider.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_browsertest.cc
|
View
|
1
2
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_shelf_context_menu.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/downloads/downloads_api.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/downloads/downloads_api_unittest.cc
|
View
|
1
2
5
6
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/streams_private/streams_private_apitest.cc
|
View
|
1
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/download/download_item_controller.mm
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/gtk/download/download_item_gtk.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/download/download_item_view.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/downloads_dom_handler.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/android/download_controller_android_impl.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_browsertest.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_item_impl.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_item_impl.cc
|
View
|
1
2
3
4
5
6
7
8
|
7 chunks |
+39 lines, -41 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_item_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
29 chunks |
+127 lines, -30 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_manager_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+7 lines, -26 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_manager_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_stats.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/download/download_stats.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/download_item.h
|
View
|
1
2
3
4
5
6
7
8
|
6 chunks |
+16 lines, -13 lines |
0 comments
|
Download
|
 |
M |
content/public/test/download_test_observer.cc
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/public/test/mock_download_item.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
Total messages: 23 (0 generated)
|