|
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=21417
Total comments: 34
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+169 lines, -63 lines) |
Patch |
 |
M |
chrome/browser/chrome_plugin_host.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/net/url_fetcher.cc
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/plugin_process_host.cc
|
View
|
1
2
3
4
|
2 chunks |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/resource_dispatcher_host.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/resource_dispatcher_host.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_plugin_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/proxy/proxy_script_fetcher.cc
|
View
|
1
2
3
4
|
2 chunks |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
M |
net/tools/testserver/testserver.py
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/url_request/url_request.h
|
View
|
1
2
3
4
|
3 chunks |
+16 lines, -4 lines |
3 comments
|
Download
|
 |
M |
net/url_request/url_request.cc
|
View
|
1
2
3
4
|
6 chunks |
+12 lines, -3 lines |
0 comments
|
Download
|
 |
M |
net/url_request/url_request_job.h
|
View
|
1
2
3
4
|
6 chunks |
+12 lines, -6 lines |
2 comments
|
Download
|
 |
M |
net/url_request/url_request_job.cc
|
View
|
1
2
3
4
|
7 chunks |
+30 lines, -22 lines |
0 comments
|
Download
|
 |
M |
net/url_request/url_request_unittest.h
|
View
|
1
2
3
4
|
4 chunks |
+10 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/url_request/url_request_unittest.cc
|
View
|
1
2
3
4
|
6 chunks |
+77 lines, -5 lines |
0 comments
|
Download
|
 |
M |
webkit/tools/test_shell/simple_resource_loader_bridge.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
Total messages: 13 (0 generated)
|