|
|
Add a mechanism to disable IPv6.
(1) Adds the ability to specify the address family on a per-request basis.
(2) Exposes a --disable-ipv6 flag to chrome that changes the default address family from AF_UNSPEC to AF_INET (same sort of thing Firefox does).
(3) Changes the backing datastructure for HostCache:EntryMap and HostResolverImpl::JobMap from a "hash_map" to a "std::map". This was for consistency with other code (when I went to add a custom hash trait, I couldn't find any existing code which was using hashmap for custom keys).
(4) Updates about:net-internals to display an address family for the hostcache dump (since it is now a part of the key).
This change is in anticipation of turning off IPv6 host resolving in the PAC utility functions (see bug 24641). But it is also a feature addition.
BUG= 24641
TEST=HostCacheTest.AddressFamilyIsPartOfKey
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29686
Total comments: 11
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+302 lines, -129 lines) |
Patch |
 |
M |
chrome/browser/net/dns_global.cc
|
View
|
1
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_switches.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/chrome_switches.cc
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/unit/chrome_test_suite.h
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
A |
net/base/address_family.h
|
View
|
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/base/address_list_unittest.cc
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/base/host_cache.h
|
View
|
1
|
2 chunks |
+26 lines, -6 lines |
0 comments
|
Download
|
 |
M |
net/base/host_cache.cc
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
net/base/host_cache_unittest.cc
|
View
|
1
|
10 chunks |
+108 lines, -67 lines |
0 comments
|
Download
|
 |
M |
net/base/host_resolver.h
|
View
|
1
|
5 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
net/base/host_resolver_impl.h
|
View
|
1
|
4 chunks |
+14 lines, -4 lines |
2 comments
|
Download
|
 |
M |
net/base/host_resolver_impl.cc
|
View
|
|
11 chunks |
+36 lines, -23 lines |
0 comments
|
Download
|
 |
M |
net/base/host_resolver_impl_unittest.cc
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/base/host_resolver_proc.h
|
View
|
|
3 chunks |
+13 lines, -6 lines |
0 comments
|
Download
|
 |
M |
net/base/host_resolver_proc.cc
|
View
|
|
3 chunks |
+14 lines, -4 lines |
0 comments
|
Download
|
 |
M |
net/base/mock_host_resolver.h
|
View
|
|
2 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
net/base/mock_host_resolver.cc
|
View
|
|
3 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/net.gyp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
net/url_request/url_request_view_net_internals_job.cc
|
View
|
|
3 chunks |
+21 lines, -5 lines |
0 comments
|
Download
|
Total messages: 19 (0 generated)
|