|
|
Merge r21417 to 172.
(Part 1, r22067 to follow)
Add support to URLRequest for deferring redirects.
I chose to add an out parameter to OnReceivedRedirect because it allows for the
default behavior to remain the same.
I considered adding a ContinueAfterRedirect method that all OnReceivedRedirect
implementations would need to call, but this caused one annoying problem: In
the case of a ChromePlugin, it is possible for the URLRequest to get deleted
inside the handler for the redirect. This would make it hard to subsequently
call a method on the URLRequest since I would need to have a way to determine
if the URLRequest had been deleted.
TEST=covered by unit tests
BUG= 16413, 6442
R=eroman,wtc
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=23616
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+162 lines, -56 lines) |
Patch |
 |
MM |
chrome/browser/chrome_plugin_host.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
MM |
chrome/browser/net/url_fetcher.cc
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
MM |
chrome/browser/plugin_process_host.cc
|
View
|
|
2 chunks |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
MM |
chrome/browser/renderer_host/resource_dispatcher_host.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
MM |
chrome/browser/renderer_host/resource_dispatcher_host.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_plugin_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/proxy/proxy_script_fetcher.cc
|
View
|
|
2 chunks |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
MM |
net/tools/testserver/testserver.py
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/url_request/url_request.h
|
View
|
|
2 chunks |
+16 lines, -3 lines |
0 comments
|
Download
|
 |
M |
net/url_request/url_request.cc
|
View
|
|
5 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/url_request/url_request_job.h
|
View
|
|
4 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/url_request/url_request_job.cc
|
View
|
|
7 chunks |
+31 lines, -23 lines |
0 comments
|
Download
|
 |
MM |
net/url_request/url_request_unittest.h
|
View
|
|
4 chunks |
+10 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/url_request/url_request_unittest.cc
|
View
|
|
6 chunks |
+77 lines, -5 lines |
0 comments
|
Download
|
 |
M |
webkit/tools/test_shell/simple_resource_loader_bridge.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|