|
[Download] Return DownloadInterruptReason from OnStartedCallback
DownloadUrlParameters::OnStartedCallback is invoked when the server
response is received for a newly started download. If there's an error,
this callback used to receive a net::Error indicating why.
This CL changes the return value to a DownloadInterruptReason so that
the callback can indicate error conditions that affect downloads that
aren't considered errors at the network layer. Also, it avoids having to
call DownloadManager::Start() when the response indicates that a
download is not possible.
Currently downloads that fail to start return a net::Error, but those
that fail after starting return a DownloadInterruptReason. With this
change, all downloads will return a DownloadInterruptReason regardless
of when the download is interrupted.
BUG= 7648
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244657
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+179 lines, -130 lines) |
Patch |
|
M |
android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/download/download_browsertest.cc
|
View
|
1
2
|
5 chunks |
+12 lines, -10 lines |
0 comments
|
Download
|
|
M |
chrome/browser/download/download_item_model.cc
|
View
|
1
2
|
5 chunks |
+18 lines, -8 lines |
0 comments
|
Download
|
|
M |
chrome/browser/download/download_item_model_unittest.cc
|
View
|
1
2
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/downloads/downloads_api.h
|
View
|
|
1 chunk |
+5 lines, -6 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/downloads/downloads_api.cc
|
View
|
|
3 chunks |
+11 lines, -9 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc
|
View
|
1
2
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/image_writer_private/write_from_url_operation.h
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/image_writer_private/write_from_url_operation.cc
|
View
|
1
2
|
3 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/webstore_installer.h
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/webstore_installer.cc
|
View
|
1
2
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/browser/history/history_unittest.cc
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/plugins/plugin_installer.h
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/plugins/plugin_installer.cc
|
View
|
|
5 chunks |
+13 lines, -9 lines |
0 comments
|
Download
|
|
M |
chrome/common/extensions/api/downloads.idl
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/browser/download/download_interrupt_reasons_impl.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/browser/download/download_item_impl.h
|
View
|
1
2
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/browser/download/download_item_impl.cc
|
View
|
1
2
|
3 chunks |
+8 lines, -10 lines |
0 comments
|
Download
|
|
M |
content/browser/download/download_manager_impl.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/browser/download/download_net_log_parameters.cc
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/browser/download/download_resource_handler.h
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/browser/download/download_resource_handler.cc
|
View
|
|
5 chunks |
+11 lines, -8 lines |
0 comments
|
Download
|
|
M |
content/browser/download/drag_download_file.cc
|
View
|
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/browser/indexed_db/indexed_db_internals_ui.h
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/browser/indexed_db/indexed_db_internals_ui.cc
|
View
|
1
2
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/browser/loader/resource_dispatcher_host_impl.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/browser/loader/resource_dispatcher_host_impl.cc
|
View
|
1
2
|
6 chunks |
+16 lines, -11 lines |
0 comments
|
Download
|
|
M |
content/public/browser/download_interrupt_reason_values.h
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/public/browser/download_interrupt_reasons.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/public/browser/download_url_parameters.h
|
View
|
|
3 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/public/browser/resource_dispatcher_host.h
|
View
|
|
3 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/public/test/download_test_observer.h
|
View
|
|
3 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/public/test/download_test_observer.cc
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
Total messages: 18 (0 generated)
|