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

Issue 7008021: Added DnsQuery class (Closed)

Created:
9 years, 7 months ago by agayev
Modified:
9 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Added DnsQuery class BUG=60149 TEST=dns_query_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=87809

Patch Set 1 #

Total comments: 12

Patch Set 2 : Added DnsResponse class #

Total comments: 43

Patch Set 3 : fix issues mentioned by agl #

Total comments: 30

Patch Set 4 : fix issues mentioned by cbentzel #

Patch Set 5 : make dnsquery const #

Patch Set 6 : make dnsquery const post-creation #

Patch Set 7 : make dnsquery const post-creation #

Patch Set 8 : get rid of unnecessary include #

Total comments: 18

Patch Set 9 : fixed issues cbentzel mentioned' #

Total comments: 2

Patch Set 10 : fix nit #

Patch Set 11 : trying to fix the mess #

Patch Set 12 : got rid of iostream #

Patch Set 13 : fixed comments, made DnsQuery::io_buffer() const #

Patch Set 14 : fix comments #

Patch Set 15 : merge with trunk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+618 lines, -2 lines) Patch
A net/base/dns_query.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +71 lines, -0 lines 0 comments Download
A net/base/dns_query.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +108 lines, -0 lines 0 comments Download
A net/base/dns_query_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +109 lines, -0 lines 0 comments Download
A net/base/dns_response.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +47 lines, -0 lines 0 comments Download
A net/base/dns_response.cc View 1 2 3 4 5 6 7 1 chunk +103 lines, -0 lines 0 comments Download
A net/base/dns_response_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +152 lines, -0 lines 0 comments Download
M net/base/dns_util.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -1 line 0 comments Download
M net/base/dnsrr_resolver.cc View 1 chunk +0 lines, -1 line 0 comments Download
M net/base/net_error_list.h View 1 2 3 4 5 6 7 8 9 1 chunk +17 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
agayev
Please see if this makes sense. I will add DnsResponse soon. Ignore the AddressList change ...
9 years, 7 months ago (2011-05-25 22:03:03 UTC) #1
cbentzel
Sorry for being so slow. This generally looks like what I would expect. http://codereview.chromium.org/7008021/diff/1/net/base/dns_query.cc File ...
9 years, 7 months ago (2011-05-26 17:32:40 UTC) #2
agayev
Addressed all the issues, also added DnsResponse. Will add more thorough unit tests once we ...
9 years, 7 months ago (2011-05-26 22:55:55 UTC) #3
cbentzel
Would it make more sense to just have a DnsMessage class instead of separate DnsQuery ...
9 years, 7 months ago (2011-05-27 15:15:54 UTC) #4
cbentzel
+agl I'd expect the following classes/structs for something like this. It's worth looking at dnsrr_resolver ...
9 years, 7 months ago (2011-05-27 17:33:49 UTC) #5
agl
On Fri, May 27, 2011 at 1:33 PM, <cbentzel@chromium.org> wrote: > +agl (note: I'm on ...
9 years, 7 months ago (2011-05-27 17:59:04 UTC) #6
agayev
On 2011/05/27 17:33:49, cbentzel wrote: > +agl > > I'd expect the following classes/structs for ...
9 years, 7 months ago (2011-05-27 20:13:14 UTC) #7
agl
http://codereview.chromium.org/7008021/diff/5002/net/base/dns_query.cc File net/base/dns_query.cc (right): http://codereview.chromium.org/7008021/diff/5002/net/base/dns_query.cc#newcode20 net/base/dns_query.cc:20: buf[1] = v & 0xff; please flip these two ...
9 years, 6 months ago (2011-05-30 18:35:30 UTC) #8
agayev
Adam, thanks for a detailed review. I've replied to your comments, but have written will ...
9 years, 6 months ago (2011-05-31 15:19:06 UTC) #9
agayev
+ eroman, jar Hi eroman, jar, Please review the DnsQuery and DnsResponse classes in terms ...
9 years, 6 months ago (2011-05-31 15:33:49 UTC) #10
cbentzel
Talib and I talked in person. Although I was initially a fan of a single ...
9 years, 6 months ago (2011-05-31 20:02:50 UTC) #11
agayev
I will try and commit this CL now that Chris is fine with two separate ...
9 years, 6 months ago (2011-06-01 15:58:24 UTC) #12
agl
LGTM. Just a random thought: when sending the DNS packets you know that you need ...
9 years, 6 months ago (2011-06-01 16:29:42 UTC) #13
agayev
On 2011/06/01 16:29:42, agl wrote: > LGTM. > > Just a random thought: when sending ...
9 years, 6 months ago (2011-06-01 16:34:59 UTC) #14
cbentzel
http://codereview.chromium.org/7008021/diff/15001/net/base/dns_query.cc File net/base/dns_query.cc (right): http://codereview.chromium.org/7008021/diff/15001/net/base/dns_query.cc#newcode36 net/base/dns_query.cc:36: } Nit: // namespace to indicate end of anonymous ...
9 years, 6 months ago (2011-06-01 17:17:03 UTC) #15
agayev
http://codereview.chromium.org/7008021/diff/15001/net/base/dns_query.cc File net/base/dns_query.cc (right): http://codereview.chromium.org/7008021/diff/15001/net/base/dns_query.cc#newcode36 net/base/dns_query.cc:36: } On 2011/06/01 17:17:03, cbentzel wrote: > Nit: // ...
9 years, 6 months ago (2011-06-01 19:15:01 UTC) #16
cbentzel
Mostly looks good. - Change the DnsQuery to be const-after-construction (in other words io_buffer() doesn't ...
9 years, 6 months ago (2011-06-01 19:41:21 UTC) #17
agayev
Please review, I've added error codes. On 2011/06/01 19:41:21, cbentzel wrote: > Mostly looks good. ...
9 years, 6 months ago (2011-06-02 20:01:23 UTC) #18
cbentzel
This looks good. Most of the issues I raised are questions or comment nits. However, ...
9 years, 6 months ago (2011-06-02 21:27:13 UTC) #19
agayev
http://codereview.chromium.org/7008021/diff/26005/net/base/dns_query.h File net/base/dns_query.h (right): http://codereview.chromium.org/7008021/diff/26005/net/base/dns_query.h#newcode26 net/base/dns_query.h:26: // Every generated object has a different ID, hence ...
9 years, 6 months ago (2011-06-02 22:33:26 UTC) #20
cbentzel
LGTM http://codereview.chromium.org/7008021/diff/26005/net/base/dns_query.h File net/base/dns_query.h (right): http://codereview.chromium.org/7008021/diff/26005/net/base/dns_query.h#newcode26 net/base/dns_query.h:26: // Every generated object has a different ID, ...
9 years, 6 months ago (2011-06-03 01:58:46 UTC) #21
agayev
9 years, 6 months ago (2011-06-03 14:13:54 UTC) #22
http://codereview.chromium.org/7008021/diff/29004/net/base/net_error_list.h
File net/base/net_error_list.h (right):

http://codereview.chromium.org/7008021/diff/29004/net/base/net_error_list.h#n...
net/base/net_error_list.h:240: // DNS server failed.  This error is returned for
all ofthe following error
On 2011/06/03 01:58:46, cbentzel wrote:
> Nit: of the instead of ofthe

Done.

Powered by Google App Engine
This is Rietveld 408576698