|
* Move the global "DnsResolutionObserver" code depended on by DNS prefetcher, into HostResolver. This has the advantage that consumers of DNS no longer have to remember to call "DidFinishDnsResolutionWithStatus()" followed by "DidStartDnsResolution()" in order for the prefetcher to observe the resolution. Instead it just happens automatically, and subscribers register via HostResolver::AddObserver() on a particular resolver instance.
* To accomodate the prefetcher's observer, HostResolver::Resolve() needs an additional "referrer" parameter. This is slightly awkward since "referrer" has nothing to do with the actual resolve request. To simplify plumbing through this and other optional parameters, Resolve() was changed to take a "RequestInfo&" parameter in place of say {hostname, port, flags}.
* Added an option to HostResolver::Resolve() for disallowing cached responses (RequestInfo::allow_cached_response). This will be used when you refresh a page, to bypass the host cache. The code to do this has been added to HttpNetworkTransaction, but is commented out pending an appropriate unit-test to verify it.
BUG= 14056
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=18371
Total comments: 26
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+523 lines, -264 lines) |
Patch |
|
M |
chrome/browser/net/dns_global.cc
|
View
|
1
2
3
|
5 chunks |
+33 lines, -18 lines |
0 comments
|
Download
|
|
M |
chrome/browser/net/dns_master.cc
|
View
|
1
2
3
|
1 chunk |
+10 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/net/dns_master_unittest.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
net/base/client_socket_handle.h
|
View
|
1
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
net/base/client_socket_handle.cc
|
View
|
1
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
net/base/client_socket_pool.h
|
View
|
1
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
net/base/dns_resolution_observer.h
|
View
|
1
2
3
|
2 chunks |
+11 lines, -31 lines |
0 comments
|
Download
|
|
D |
net/base/dns_resolution_observer.cc
|
View
|
1
|
1 chunk |
+0 lines, -60 lines |
0 comments
|
Download
|
|
M |
net/base/host_resolver.h
|
View
|
1
2
3
|
8 chunks |
+73 lines, -7 lines |
0 comments
|
Download
|
|
M |
net/base/host_resolver.cc
|
View
|
1
2
3
|
12 chunks |
+87 lines, -28 lines |
0 comments
|
Download
|
|
M |
net/base/host_resolver_unittest.cc
|
View
|
1
2
3
|
11 chunks |
+190 lines, -18 lines |
0 comments
|
Download
|
|
M |
net/base/ssl_client_socket_unittest.cc
|
View
|
1
|
6 chunks |
+13 lines, -12 lines |
0 comments
|
Download
|
|
M |
net/base/ssl_test_util.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
net/base/tcp_client_socket_pool.h
|
View
|
1
|
3 chunks |
+15 lines, -5 lines |
0 comments
|
Download
|
|
M |
net/base/tcp_client_socket_pool.cc
|
View
|
1
2
3
|
4 chunks |
+14 lines, -27 lines |
0 comments
|
Download
|
|
M |
net/base/tcp_client_socket_pool_unittest.cc
|
View
|
1
|
12 chunks |
+26 lines, -25 lines |
0 comments
|
Download
|
|
M |
net/base/tcp_client_socket_unittest.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
net/base/tcp_pinger_unittest.cc
|
View
|
1
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
net/ftp/ftp_network_transaction.cc
|
View
|
1
2
3
|
2 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
|
M |
net/http/http_network_transaction.cc
|
View
|
1
2
3
|
1 chunk |
+20 lines, -1 line |
0 comments
|
Download
|
|
M |
net/net.gyp
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
net/proxy/proxy_resolver_v8.cc
|
View
|
1
|
2 chunks |
+6 lines, -7 lines |
0 comments
|
Download
|
Total messages: 4 (0 generated)
|