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

Issue 16975004: Finished DNS-SD server. Finished Privet-specified DNS-SD server. (Closed)

Created:
7 years, 6 months ago by maksymb
Modified:
7 years, 6 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Finished DNS-SD server. Finished Privet-specified DNS-SD server. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=208064

Patch Set 1 #

Patch Set 2 : Fixed Lint errors.wq #

Total comments: 16

Patch Set 3 : Fixed some syntax-style mistakes. #

Patch Set 4 : Made Builder as specifier of DNS-SD server. #

Patch Set 5 : Fixed Lint errors. #

Total comments: 64

Patch Set 6 : Deleted commnets from DnsResponseBuilder. #

Patch Set 7 : Fixed style mistakes. #

Patch Set 8 : Fixed Lint error. #

Total comments: 18

Patch Set 9 : Added strong control of size in PrivetDnsResponseBuilder. #

Total comments: 46

Patch Set 10 : Reindentation of function calls. #

Total comments: 6

Patch Set 11 : Now builder is only builder and all info about service is now in DnsSdServer class. #

Patch Set 12 : Fixed Lint errors. #

Total comments: 24

Patch Set 13 : Reorganized metadata (TXT) storing and building responses. #

Total comments: 10

Patch Set 14 : Reverdet String as parameter to AddResponse. #

Patch Set 15 : Fixed Lint errors. #

Total comments: 9

Patch Set 16 : Replaced is_online_ with socket_. #

Patch Set 17 : Replaced int with size_t in one place because of warning at win compile. Added comparison with NULL… #

Patch Set 18 : Added static_cast for size_t. #

Patch Set 19 : One more socket_ != NULL #

Patch Set 20 : Added support Getting IP for Windows (now using net_util for this). #

Patch Set 21 : Fixel little mistake in GetLocalIp. #

Total comments: 18

Patch Set 22 : Deleted strong #include depedency. #

Patch Set 23 : Formalized IpAddressSize constant. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+885 lines, -68 lines) Patch
A cloud_print/gcp20/prototype/dns_packet_parser.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +78 lines, -0 lines 0 comments Download
A cloud_print/gcp20/prototype/dns_packet_parser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +38 lines, -0 lines 0 comments Download
A cloud_print/gcp20/prototype/dns_response_builder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +68 lines, -0 lines 0 comments Download
A cloud_print/gcp20/prototype/dns_response_builder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +153 lines, -0 lines 0 comments Download
M cloud_print/gcp20/prototype/dns_sd_server.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +59 lines, -17 lines 0 comments Download
M cloud_print/gcp20/prototype/dns_sd_server.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +205 lines, -42 lines 0 comments Download
M cloud_print/gcp20/prototype/gcp20_device.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +36 lines, -7 lines 0 comments Download
M cloud_print/gcp20/prototype/gcp20_device.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +21 lines, -2 lines 0 comments Download
A cloud_print/gcp20/prototype/printer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +42 lines, -0 lines 0 comments Download
A cloud_print/gcp20/prototype/printer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +131 lines, -0 lines 0 comments Download
A cloud_print/gcp20/prototype/service_parameters.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +32 lines, -0 lines 0 comments Download
A cloud_print/gcp20/prototype/service_parameters.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
maksymb
Please take a look at my CL.
7 years, 6 months ago (2013-06-13 19:05:13 UTC) #1
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/16975004/diff/2005/cloud_print/gcp20/prototype/dns_packet_parser.cc File cloud_print/gcp20/prototype/dns_packet_parser.cc (right): https://codereview.chromium.org/16975004/diff/2005/cloud_print/gcp20/prototype/dns_packet_parser.cc#newcode32 cloud_print/gcp20/prototype/dns_packet_parser.cc:32: if (reader.ReadU16(&out->qtype) && if should fit one one https://codereview.chromium.org/16975004/diff/2005/cloud_print/gcp20/prototype/dns_packet_parser.h ...
7 years, 6 months ago (2013-06-13 22:26:36 UTC) #2
maksymb
Explained why I've made splitting. https://codereview.chromium.org/16975004/diff/2005/cloud_print/gcp20/prototype/dns_packet_parser.cc File cloud_print/gcp20/prototype/dns_packet_parser.cc (right): https://codereview.chromium.org/16975004/diff/2005/cloud_print/gcp20/prototype/dns_packet_parser.cc#newcode32 cloud_print/gcp20/prototype/dns_packet_parser.cc:32: if (reader.ReadU16(&out->qtype) && On ...
7 years, 6 months ago (2013-06-13 22:43:45 UTC) #3
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/16975004/diff/2005/cloud_print/gcp20/prototype/dns_packet_parser.h File cloud_print/gcp20/prototype/dns_packet_parser.h (right): https://codereview.chromium.org/16975004/diff/2005/cloud_print/gcp20/prototype/dns_packet_parser.h#newcode49 cloud_print/gcp20/prototype/dns_packet_parser.h:49: unsigned ReadName(const void* pos, std::string* out) const { On ...
7 years, 6 months ago (2013-06-13 22:54:10 UTC) #4
maksymb
https://codereview.chromium.org/16975004/diff/2005/cloud_print/gcp20/prototype/dns_packet_parser.h File cloud_print/gcp20/prototype/dns_packet_parser.h (right): https://codereview.chromium.org/16975004/diff/2005/cloud_print/gcp20/prototype/dns_packet_parser.h#newcode49 cloud_print/gcp20/prototype/dns_packet_parser.h:49: unsigned ReadName(const void* pos, std::string* out) const { On ...
7 years, 6 months ago (2013-06-14 16:46:11 UTC) #5
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/16975004/diff/36001/cloud_print/gcp20/prototype/dns_packet_parser.cc File cloud_print/gcp20/prototype/dns_packet_parser.cc (right): https://codereview.chromium.org/16975004/diff/36001/cloud_print/gcp20/prototype/dns_packet_parser.cc#newcode21 cloud_print/gcp20/prototype/dns_packet_parser.cc:21: : packet_(packet), length_(length), 4 spaces before : and one ...
7 years, 6 months ago (2013-06-14 19:27:07 UTC) #6
maksymb
All's done. https://codereview.chromium.org/16975004/diff/36001/cloud_print/gcp20/prototype/dns_packet_parser.cc File cloud_print/gcp20/prototype/dns_packet_parser.cc (right): https://codereview.chromium.org/16975004/diff/36001/cloud_print/gcp20/prototype/dns_packet_parser.cc#newcode21 cloud_print/gcp20/prototype/dns_packet_parser.cc:21: : packet_(packet), length_(length), On 2013/06/14 19:27:07, Vitaly ...
7 years, 6 months ago (2013-06-14 22:17:14 UTC) #7
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/16975004/diff/54001/cloud_print/gcp20/prototype/dns_sd_server.cc File cloud_print/gcp20/prototype/dns_sd_server.cc (right): https://codereview.chromium.org/16975004/diff/54001/cloud_print/gcp20/prototype/dns_sd_server.cc#newcode147 cloud_print/gcp20/prototype/dns_sd_server.cc:147: scoped_refptr<net::IOBufferWithSize> buffer( fix https://codereview.chromium.org/16975004/diff/54001/cloud_print/gcp20/prototype/gcp20_device.cc File cloud_print/gcp20/prototype/gcp20_device.cc (right): https://codereview.chromium.org/16975004/diff/54001/cloud_print/gcp20/prototype/gcp20_device.cc#newcode28 cloud_print/gcp20/prototype/gcp20_device.cc:28: ...
7 years, 6 months ago (2013-06-14 23:46:52 UTC) #8
maksymb
All's done. https://codereview.chromium.org/16975004/diff/54001/cloud_print/gcp20/prototype/dns_sd_server.cc File cloud_print/gcp20/prototype/dns_sd_server.cc (right): https://codereview.chromium.org/16975004/diff/54001/cloud_print/gcp20/prototype/dns_sd_server.cc#newcode147 cloud_print/gcp20/prototype/dns_sd_server.cc:147: scoped_refptr<net::IOBufferWithSize> buffer( On 2013/06/14 23:46:52, Vitaly Buka ...
7 years, 6 months ago (2013-06-15 01:02:22 UTC) #9
Vitaly Buka (NO REVIEWS)
lgtm https://codereview.chromium.org/16975004/diff/67001/cloud_print/gcp20/prototype/printer.cc File cloud_print/gcp20/prototype/printer.cc (right): https://codereview.chromium.org/16975004/diff/67001/cloud_print/gcp20/prototype/printer.cc#newcode62 cloud_print/gcp20/prototype/printer.cc:62: for (ifaddrs* interface = first_interface; interface fits on ...
7 years, 6 months ago (2013-06-15 01:20:58 UTC) #10
maksymb
All's done. https://codereview.chromium.org/16975004/diff/67001/cloud_print/gcp20/prototype/printer.cc File cloud_print/gcp20/prototype/printer.cc (right): https://codereview.chromium.org/16975004/diff/67001/cloud_print/gcp20/prototype/printer.cc#newcode62 cloud_print/gcp20/prototype/printer.cc:62: for (ifaddrs* interface = first_interface; On 2013/06/15 ...
7 years, 6 months ago (2013-06-15 01:56:58 UTC) #11
gene
Not complete. I'll take more look at printer.* and privet_dns_response_builder.* later https://codereview.chromium.org/16975004/diff/67001/cloud_print/gcp20/prototype/dns_packet_parser.cc File cloud_print/gcp20/prototype/dns_packet_parser.cc (right): ...
7 years, 6 months ago (2013-06-15 02:13:23 UTC) #12
maksymb
All's done. https://codereview.chromium.org/16975004/diff/67001/cloud_print/gcp20/prototype/dns_packet_parser.cc File cloud_print/gcp20/prototype/dns_packet_parser.cc (right): https://codereview.chromium.org/16975004/diff/67001/cloud_print/gcp20/prototype/dns_packet_parser.cc#newcode34 cloud_print/gcp20/prototype/dns_packet_parser.cc:34: return record_parser_.SkipQuestion(); // instead of |cur_ = ...
7 years, 6 months ago (2013-06-18 01:14:48 UTC) #13
gene
https://codereview.chromium.org/16975004/diff/68014/cloud_print/gcp20/prototype/dns_packet_parser.h File cloud_print/gcp20/prototype/dns_packet_parser.h (right): https://codereview.chromium.org/16975004/diff/68014/cloud_print/gcp20/prototype/dns_packet_parser.h#newcode39 cloud_print/gcp20/prototype/dns_packet_parser.h:39: const net::dns_protocol::Header& header() { return header_; } const? https://codereview.chromium.org/16975004/diff/68014/cloud_print/gcp20/prototype/dns_response_builder.cc ...
7 years, 6 months ago (2013-06-19 05:40:51 UTC) #14
maksymb
https://codereview.chromium.org/16975004/diff/68014/cloud_print/gcp20/prototype/dns_packet_parser.h File cloud_print/gcp20/prototype/dns_packet_parser.h (right): https://codereview.chromium.org/16975004/diff/68014/cloud_print/gcp20/prototype/dns_packet_parser.h#newcode39 cloud_print/gcp20/prototype/dns_packet_parser.h:39: const net::dns_protocol::Header& header() { return header_; } On 2013/06/19 ...
7 years, 6 months ago (2013-06-19 21:47:21 UTC) #15
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/16975004/diff/100001/cloud_print/gcp20/prototype/dns_response_builder.cc File cloud_print/gcp20/prototype/dns_response_builder.cc (right): https://codereview.chromium.org/16975004/diff/100001/cloud_print/gcp20/prototype/dns_response_builder.cc#newcode56 cloud_print/gcp20/prototype/dns_response_builder.cc:56: scoped_ptr<char[]> rdata(new char[rdata_size]); please use vector<char> rdata(rdata_size, 0);
7 years, 6 months ago (2013-06-19 23:03:21 UTC) #16
maksymb
Reverted string as parameter. Please take a look. https://codereview.chromium.org/16975004/diff/100001/cloud_print/gcp20/prototype/dns_response_builder.cc File cloud_print/gcp20/prototype/dns_response_builder.cc (right): https://codereview.chromium.org/16975004/diff/100001/cloud_print/gcp20/prototype/dns_response_builder.cc#newcode56 cloud_print/gcp20/prototype/dns_response_builder.cc:56: scoped_ptr<char[]> ...
7 years, 6 months ago (2013-06-20 00:12:57 UTC) #17
gene
almost done :) some comments below: https://codereview.chromium.org/16975004/diff/100001/cloud_print/gcp20/prototype/dns_packet_parser.cc File cloud_print/gcp20/prototype/dns_packet_parser.cc (right): https://codereview.chromium.org/16975004/diff/100001/cloud_print/gcp20/prototype/dns_packet_parser.cc#newcode10 cloud_print/gcp20/prototype/dns_packet_parser.cc:10: size_t length) will ...
7 years, 6 months ago (2013-06-20 00:56:52 UTC) #18
maksymb
All's done. https://codereview.chromium.org/16975004/diff/100001/cloud_print/gcp20/prototype/dns_packet_parser.cc File cloud_print/gcp20/prototype/dns_packet_parser.cc (right): https://codereview.chromium.org/16975004/diff/100001/cloud_print/gcp20/prototype/dns_packet_parser.cc#newcode10 cloud_print/gcp20/prototype/dns_packet_parser.cc:10: size_t length) On 2013/06/20 00:56:52, gene wrote: ...
7 years, 6 months ago (2013-06-20 02:43:53 UTC) #19
gene
lgtm
7 years, 6 months ago (2013-06-20 03:08:17 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maksymb@chromium.org/16975004/125001
7 years, 6 months ago (2013-06-20 03:12:26 UTC) #21
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-06-20 06:03:15 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maksymb@chromium.org/16975004/125001
7 years, 6 months ago (2013-06-20 15:07:32 UTC) #23
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-06-20 15:47:15 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maksymb@chromium.org/16975004/147001
7 years, 6 months ago (2013-06-20 17:02:23 UTC) #25
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-06-20 18:02:34 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maksymb@chromium.org/16975004/86002
7 years, 6 months ago (2013-06-20 18:18:32 UTC) #27
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-06-20 19:31:02 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maksymb@chromium.org/16975004/170001
7 years, 6 months ago (2013-06-20 19:46:04 UTC) #29
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-06-20 20:59:18 UTC) #30
Vitaly Buka (NO REVIEWS)
lgtm https://codereview.chromium.org/16975004/diff/186001/cloud_print/gcp20/prototype/dns_sd_server.cc File cloud_print/gcp20/prototype/dns_sd_server.cc (right): https://codereview.chromium.org/16975004/diff/186001/cloud_print/gcp20/prototype/dns_sd_server.cc#newcode51 cloud_print/gcp20/prototype/dns_sd_server.cc:51: if (socket_.get() != NULL) if (socket_) or IsOnline() ...
7 years, 6 months ago (2013-06-21 01:03:39 UTC) #31
maksymb
https://codereview.chromium.org/16975004/diff/186001/cloud_print/gcp20/prototype/dns_sd_server.cc File cloud_print/gcp20/prototype/dns_sd_server.cc (right): https://codereview.chromium.org/16975004/diff/186001/cloud_print/gcp20/prototype/dns_sd_server.cc#newcode51 cloud_print/gcp20/prototype/dns_sd_server.cc:51: if (socket_.get() != NULL) On 2013/06/21 01:03:39, Vitaly Buka ...
7 years, 6 months ago (2013-06-21 03:22:48 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maksymb@chromium.org/16975004/193001
7 years, 6 months ago (2013-06-21 19:12:47 UTC) #33
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-06-21 20:26:45 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maksymb@chromium.org/16975004/207001
7 years, 6 months ago (2013-06-21 21:34:59 UTC) #35
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 6 months ago (2013-06-21 22:59:48 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maksymb@chromium.org/16975004/207001
7 years, 6 months ago (2013-06-21 23:54:22 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maksymb@chromium.org/16975004/207001
7 years, 6 months ago (2013-06-22 02:33:51 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maksymb@chromium.org/16975004/207001
7 years, 6 months ago (2013-06-22 03:02:23 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maksymb@chromium.org/16975004/207001
7 years, 6 months ago (2013-06-22 03:31:11 UTC) #40
commit-bot: I haz the power
7 years, 6 months ago (2013-06-22 16:49:07 UTC) #41
Message was sent while issue was closed.
Change committed as 208064

Powered by Google App Engine
This is Rietveld 408576698