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

Issue 8762001: Isolates generic DnsClient from AsyncHostResolver. (Closed)

Created:
9 years ago by szym
Modified:
9 years ago
Reviewers:
cbentzel, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, mmenke, Paweł Hajdan Jr.
Visibility:
Public.

Description

Isolates generic DnsClient from AsyncHostResolver. DnsClient provides a generic DNS client that allows fetching resource records. DnsClient is very lightweight and does not support aggregation, queuing or prioritization of requests. This is the first CL in a series to merge AsyncHostResolver into HostResolverImpl. Also introduces general-purpose BigEndianReader/Writer. BUG=90881 TEST=./net_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113282

Patch Set 1 #

Total comments: 102

Patch Set 2 : fix out-of-bounds access; more sensible error codes #

Total comments: 8

Patch Set 3 : Addressed code review (almost all "Done") + extra test. #

Patch Set 4 : 'Adding missing big_endian* after rename' #

Patch Set 5 : uint16_t -> uint16 for non-Linux #

Patch Set 6 : uintX_t -> uintX #

Total comments: 28

Patch Set 7 : applied review #

Total comments: 26

Patch Set 8 : applied review #

Patch Set 9 : class -> struct in forward declare (clang wants it) #

Patch Set 10 : retrying to fix status of dns_session.h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1965 lines, -927 lines) Patch
A net/base/big_endian.h View 1 2 3 4 5 6 7 1 chunk +107 lines, -0 lines 0 comments Download
A net/base/big_endian.cc View 1 2 3 4 5 6 7 1 chunk +98 lines, -0 lines 0 comments Download
A net/base/big_endian_unittest.cc View 1 2 3 4 5 6 7 1 chunk +100 lines, -0 lines 0 comments Download
M net/base/dns_util.h View 1 chunk +7 lines, -3 lines 0 comments Download
M net/base/dns_util.cc View 4 chunks +9 lines, -8 lines 0 comments Download
M net/dns/async_host_resolver.h View 1 2 3 4 5 6 7 7 chunks +18 lines, -32 lines 0 comments Download
M net/dns/async_host_resolver.cc View 1 2 10 chunks +78 lines, -59 lines 0 comments Download
M net/dns/async_host_resolver_unittest.cc View 1 2 3 4 5 6 7 6 chunks +100 lines, -71 lines 0 comments Download
A net/dns/dns_client.h View 1 2 3 4 5 6 7 1 chunk +93 lines, -0 lines 0 comments Download
A net/dns/dns_client.cc View 1 2 3 4 5 6 7 1 chunk +91 lines, -0 lines 0 comments Download
A net/dns/dns_client_unittest.cc View 1 2 3 4 5 6 1 chunk +311 lines, -0 lines 0 comments Download
A net/dns/dns_protocol.h View 1 2 1 chunk +122 lines, -0 lines 0 comments Download
M net/dns/dns_query.h View 1 2 3 4 5 6 7 2 chunks +12 lines, -27 lines 0 comments Download
M net/dns/dns_query.cc View 1 2 3 4 5 6 7 1 chunk +49 lines, -62 lines 0 comments Download
M net/dns/dns_query_unittest.cc View 1 2 3 4 5 6 2 chunks +31 lines, -72 lines 0 comments Download
M net/dns/dns_response.h View 1 2 3 4 5 6 7 8 1 chunk +79 lines, -13 lines 0 comments Download
M net/dns/dns_response.cc View 1 2 3 4 5 6 7 1 chunk +160 lines, -72 lines 0 comments Download
M net/dns/dns_response_unittest.cc View 1 2 3 4 5 6 7 2 chunks +194 lines, -101 lines 0 comments Download
A net/dns/dns_session.h View 1 2 1 chunk +70 lines, -0 lines 0 comments Download
A net/dns/dns_session.cc View 1 2 1 chunk +47 lines, -0 lines 0 comments Download
M net/dns/dns_test_util.h View 5 chunks +8 lines, -24 lines 0 comments Download
M net/dns/dns_test_util.cc View 1 chunk +0 lines, -14 lines 0 comments Download
M net/dns/dns_transaction.h View 3 chunks +22 lines, -64 lines 0 comments Download
M net/dns/dns_transaction.cc View 1 2 3 4 5 6 7 9 chunks +62 lines, -122 lines 0 comments Download
M net/dns/dns_transaction_unittest.cc View 1 2 3 4 5 6 9 chunks +89 lines, -183 lines 0 comments Download
M net/net.gyp View 1 2 5 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
szym
This is now ready for review. PTAL. DnsClient uses new-style Callback to finish the request ...
9 years ago (2011-11-30 21:37:12 UTC) #1
cbentzel
Matt can be the primary reviewer. I'll try to take a look, but may not ...
9 years ago (2011-11-30 22:04:45 UTC) #2
szym
Thanks, Chris. Matt, I've sprinkled this code with TODOs as I anticipated to have to ...
9 years ago (2011-11-30 22:36:09 UTC) #3
mmenke
The code's basically fine. Just a bunch of style nits, push back as needed. Still ...
9 years ago (2011-12-02 00:53:55 UTC) #4
mmenke
http://codereview.chromium.org/8762001/diff/1/net/base/bigendian.h File net/base/bigendian.h (right): http://codereview.chromium.org/8762001/diff/1/net/base/bigendian.h#newcode56 net/base/bigendian.h:56: int remaining() const { return end_ - ptr_; } ...
9 years ago (2011-12-02 01:19:56 UTC) #5
szym
Thanks for the review. Given the results of my experiments with NAT overload, I expect ...
9 years ago (2011-12-05 23:06:28 UTC) #6
szym
Trybots passed. Ready for another round.
9 years ago (2011-12-06 14:32:32 UTC) #7
mmenke
Want to give the CL a final once over before signing off on it, but ...
9 years ago (2011-12-06 18:08:39 UTC) #8
szym
Thanks again for review. In particular, for catching that loopy name test. http://codereview.chromium.org/8762001/diff/23001/net/dns/async_host_resolver.h File net/dns/async_host_resolver.h ...
9 years ago (2011-12-06 19:05:51 UTC) #9
mmenke
LGTM, just a couple nits. http://codereview.chromium.org/8762001/diff/10004/net/base/big_endian.h File net/base/big_endian.h (right): http://codereview.chromium.org/8762001/diff/10004/net/base/big_endian.h#newcode9 net/base/big_endian.h:9: #include "base/string_piece.h" Can you ...
9 years ago (2011-12-06 20:43:01 UTC) #10
szym
Thanks! http://codereview.chromium.org/8762001/diff/10004/net/base/big_endian.h File net/base/big_endian.h (right): http://codereview.chromium.org/8762001/diff/10004/net/base/big_endian.h#newcode9 net/base/big_endian.h:9: #include "base/string_piece.h" On 2011/12/06 20:43:01, Matt Menke wrote: ...
9 years ago (2011-12-06 21:06:43 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szym@chromium.org/8762001/32004
9 years ago (2011-12-06 21:13:09 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szym@chromium.org/8762001/30003
9 years ago (2011-12-06 21:26:30 UTC) #13
commit-bot: I haz the power
Can't process patch for file net/dns/dns_session.h. File's status is None, patchset upload is incomplete.
9 years ago (2011-12-06 21:26:42 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szym@chromium.org/8762001/30004
9 years ago (2011-12-06 21:30:03 UTC) #15
commit-bot: I haz the power
9 years ago (2011-12-06 23:33:00 UTC) #16
Change committed as 113282

Powered by Google App Engine
This is Rietveld 408576698