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

Issue 9705017: [net/dns] Serve requests from HOSTS file if possible. (Closed)

Created:
8 years, 9 months ago by szym
Modified:
8 years, 9 months ago
Reviewers:
mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, eroman, darin-cc_chromium.org
Visibility:
Public.

Description

[net/dns] Serve requests from HOSTS file if possible. If the DnsConfig is available, we can serve the requests synchronously in Resolve. However, we might not receive the DnsConfig until the Job is placed in the queue. In that case, we attempt to serve the jobs once DnsConfig is available. BUG=114826 TEST=./net_unittests --gtest_filter=HostResolverImplTest.ServeFromHosts Original review: https://chromiumcodereview.appspot.com/9667025/ Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=126697

Patch Set 1 #

Total comments: 4

Patch Set 2 : Handle lack of IPv6 support. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+675 lines, -108 lines) Patch
M net/base/host_resolver.h View 1 chunk +4 lines, -4 lines 0 comments Download
M net/base/host_resolver_impl.h View 7 chunks +22 lines, -7 lines 0 comments Download
M net/base/host_resolver_impl.cc View 16 chunks +107 lines, -24 lines 0 comments Download
M net/base/host_resolver_impl_unittest.cc View 1 22 chunks +250 lines, -72 lines 0 comments Download
M net/base/net_log_event_type_list.h View 1 chunk +3 lines, -0 lines 0 comments Download
A net/dns/dns_client.h View 1 chunk +40 lines, -0 lines 0 comments Download
A net/dns/dns_client.cc View 1 chunk +58 lines, -0 lines 0 comments Download
M net/dns/dns_test_util.h View 2 chunks +21 lines, -0 lines 0 comments Download
A net/dns/dns_test_util.cc View 1 chunk +166 lines, -0 lines 0 comments Download
M net/dns/dns_transaction_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/net.gyp View 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
szym
I looked at other uses of NetAddressToString and found that in all unittests it is ...
8 years, 9 months ago (2012-03-14 15:50:54 UTC) #1
mmenke
Hmm... Could just allow them to fail. Alternatively, could just skip those lines on XP ...
8 years, 9 months ago (2012-03-14 16:11:04 UTC) #2
szym
How about this solution?
8 years, 9 months ago (2012-03-14 17:19:04 UTC) #3
mmenke
On 2012/03/14 17:19:04, szym wrote: > How about this solution? LGTM
8 years, 9 months ago (2012-03-14 17:21:35 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szym@chromium.org/9705017/5003
8 years, 9 months ago (2012-03-14 17:48:47 UTC) #5
commit-bot: I haz the power
8 years, 9 months ago (2012-03-14 19:09:28 UTC) #6
Change committed as 126697

Powered by Google App Engine
This is Rietveld 408576698