Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Issue 1566012: HostResolver supports optional CNAME lookups. (Closed)

Created:
10 years, 8 months ago by cbentzel
Modified:
9 years, 7 months ago
Reviewers:
eroman, wtc
CC:
chromium-reviews_googlegroups.com, darin-cc_chromium.org, Paweł Hajdan Jr., ben+cc_chromium.org, chromium-reviews
Visibility:
Public.

Description

HostResolver now adds AI_CANONNAME to the hint flags if a requester needs the information. Requests which want the canonical name should be treated differently from requests that do not for the same host in both the HostCache as well as in the HostResolver when combining multiple outstanding requests into a job. The motivation for this is that Kerberos SPN's for a web server are typically generated using the canonical name of the server rather than a DNS alias (both Firefox and IE have this behavior). BUG=29862 TEST=net_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=43826

Patch Set 1 #

Patch Set 2 : Added some unittests and style fixes. #

Patch Set 3 : Added GetCanonicalName to AddressList #

Patch Set 4 : GetCanonicalName is const. #

Total comments: 33

Patch Set 5 : type name changes and other cosmetic fixes. #

Patch Set 6 : Satisfy requests without flags with cached entries. #

Patch Set 7 : More testing. #

Total comments: 1

Patch Set 8 : Undoing the subtle changes. #

Patch Set 9 : Cleanup after rollback. #

Patch Set 10 : More fixes #

Patch Set 11 : Comment fixes. #

Patch Set 12 : Build fixes #

Patch Set 13 : Cross-platform build fix for inet_pton #

Patch Set 14 : gcc fix #

Total comments: 3

Patch Set 15 : Added CNAME details to about:net-internals #

Unified diffs Side-by-side diffs Delta from patch set Stats (+255 lines, -58 lines) Patch
M chrome/browser/intranet_redirect_detector.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/intranet_redirect_detector.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/net/view_net_internals_job_factory.cc View 3 chunks +8 lines, -1 line 0 comments Download
M chrome/test/unit/chrome_test_suite.h View 2 chunks +3 lines, -1 line 0 comments Download
M net/base/address_family.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -2 lines 0 comments Download
M net/base/address_list.h View 3 4 5 6 7 8 2 chunks +10 lines, -1 line 0 comments Download
M net/base/address_list.cc View 3 4 5 6 7 8 2 chunks +9 lines, -1 line 0 comments Download
M net/base/address_list_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +62 lines, -8 lines 0 comments Download
M net/base/host_cache.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +15 lines, -8 lines 0 comments Download
M net/base/host_cache_unittest.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +71 lines, -16 lines 0 comments Download
M net/base/host_resolver.h View 1 2 3 4 5 8 3 chunks +11 lines, -0 lines 0 comments Download
M net/base/host_resolver_impl.cc View 1 2 3 4 5 6 7 8 9 5 chunks +11 lines, -5 lines 0 comments Download
M net/base/host_resolver_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 6 chunks +10 lines, -3 lines 0 comments Download
M net/base/host_resolver_proc.h View 1 2 3 4 3 chunks +3 lines, -0 lines 0 comments Download
M net/base/host_resolver_proc.cc View 1 2 3 4 5 6 7 8 9 3 chunks +13 lines, -5 lines 0 comments Download
M net/base/mock_host_resolver.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -1 line 0 comments Download
M net/base/mock_host_resolver.cc View 1 2 3 4 5 6 7 8 4 chunks +9 lines, -3 lines 0 comments Download
M net/proxy/proxy_resolver_js_bindings_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M net/socket/socket_test_util.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
cbentzel
I still need to add some more unit-tests and fix some formatting issues - but ...
10 years, 8 months ago (2010-04-02 17:36:40 UTC) #1
wtc
cbentzel: I reviewed the entire changelist. Please wait for eroman's review because this is his ...
10 years, 8 months ago (2010-04-02 22:01:26 UTC) #2
eroman
Nice change! http://codereview.chromium.org/1566012/diff/15/8001 File net/base/address_family.h (right): http://codereview.chromium.org/1566012/diff/15/8001#newcode22 net/base/address_family.h:22: ADDRESS_FLAGS_CANONNAME = 0x1, // AI_CANONNAME nit: I ...
10 years, 8 months ago (2010-04-02 22:17:52 UTC) #3
cbentzel
The latest patchset changes type names and does numerous cosmetic fixes. http://codereview.chromium.org/1566012/diff/15/8001 File net/base/address_family.h (right): ...
10 years, 8 months ago (2010-04-05 14:57:03 UTC) #4
cbentzel
http://codereview.chromium.org/1566012/diff/15/8005 File net/base/host_cache.h (right): http://codereview.chromium.org/1566012/diff/15/8005#newcode20 net/base/host_cache.h:20: class HostCache { On 2010/04/02 22:01:28, wtc wrote: > ...
10 years, 8 months ago (2010-04-05 15:07:30 UTC) #5
cbentzel
I ended up adopting the approach described in the previous comment (moving the flag out ...
10 years, 8 months ago (2010-04-05 19:27:54 UTC) #6
wtc
cbentzel: I haven't reviewed the latest Patch Set 7 yet. I will do that tomorrow. ...
10 years, 8 months ago (2010-04-06 01:26:51 UTC) #7
cbentzel
> Is it too late for you to go back to the original simple > ...
10 years, 8 months ago (2010-04-06 13:58:20 UTC) #8
cbentzel
Hold off on review - I need to fix the build breaks reported by the ...
10 years, 8 months ago (2010-04-06 14:36:40 UTC) #9
cbentzel
Ready for review.
10 years, 8 months ago (2010-04-06 18:52:37 UTC) #10
eroman
LGTM. Please also update: HostResolverCacheSubSection::OutputBody() in [chrome/browser/net/view_net_internals_job_factory.cc], to add a column for the canonical name. ...
10 years, 8 months ago (2010-04-06 20:27:39 UTC) #11
cbentzel
Thanks. I'll upload a patchset with the suggested changes. I was lazy with the host_resolver_flags.h ...
10 years, 8 months ago (2010-04-06 20:32:31 UTC) #12
wtc
cbentzel: I may not have time to review this CL today. Please commit this after ...
10 years, 8 months ago (2010-04-06 20:33:56 UTC) #13
cbentzel
10 years, 8 months ago (2010-04-07 15:00:09 UTC) #14
net_unittests ended up crashing/timing out on the main buildbot twice with this
CL, so I reverted. Curiously, the trybots never complained o win and I think
they are running XP as well. Trying to figure it out but I just have a vista
machine.

Powered by Google App Engine
This is Rietveld 408576698