|
Flesh out URLLoader's download_to_file function.
* tie the lifetime of the resulting temp file to the lifetime of the URLLoader
(the plan is to later extend the lifetime of the temp file to support xhr.responseBlob)
* make it work in test_shell
* make it work for sync requests
* added OnDataDownloaded messages to report progress
A related BlobURL loading change.
* grab a reference to the blob early on to ensure it's still there when the 'job' is finally started.
TEST=manual and deletable_file_reference_unittest.cc
BUG= 52486, 56752
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=60862
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+466 lines, -116 lines) |
Patch |
|
M |
chrome/browser/net/blob_url_request_job_factory.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+15 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/renderer_host/async_resource_handler.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/renderer_host/async_resource_handler.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/renderer_host/redirect_to_file_resource_handler.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/renderer_host/redirect_to_file_resource_handler.cc
|
View
|
1
2
3
4
5
6
|
6 chunks |
+16 lines, -16 lines |
0 comments
|
Download
|
|
M |
chrome/browser/renderer_host/resource_dispatcher_host.h
|
View
|
1
2
3
4
5
6
|
4 chunks |
+24 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/renderer_host/resource_dispatcher_host.cc
|
View
|
1
2
3
4
5
6
|
10 chunks |
+47 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/renderer_host/resource_dispatcher_host_request_info.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/renderer_host/resource_dispatcher_host_request_info.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/renderer_host/resource_handler.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/renderer_host/sync_resource_handler.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
chrome/common/render_messages_internal.h
|
View
|
1
2
3
4
5
6
|
4 chunks |
+15 lines, -12 lines |
0 comments
|
Download
|
|
M |
chrome/common/resource_dispatcher.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/common/resource_dispatcher.cc
|
View
|
1
2
3
4
5
6
|
9 chunks |
+74 lines, -75 lines |
0 comments
|
Download
|
|
A |
webkit/blob/deletable_file_reference.h
|
View
|
|
1 chunk |
+49 lines, -0 lines |
0 comments
|
Download
|
|
A |
webkit/blob/deletable_file_reference.cc
|
View
|
|
1 chunk |
+63 lines, -0 lines |
0 comments
|
Download
|
|
A |
webkit/blob/deletable_file_reference_unittest.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+54 lines, -0 lines |
0 comments
|
Download
|
|
M |
webkit/blob/webkit_blob.gypi
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
webkit/glue/weburlloader_impl.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
webkit/tools/test_shell/simple_resource_loader_bridge.cc
|
View
|
1
2
3
4
5
6
|
15 chunks |
+53 lines, -3 lines |
0 comments
|
Download
|
|
M |
webkit/tools/test_shell/test_shell.gypi
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 5 (0 generated)
|