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

Unified Diff: cloud_print/gcp20/prototype/dns_response_builder.h

Issue 131103028: Added --extended-response to put additional information into PTR responces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cloud_print/gcp20/prototype/dns_response_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cloud_print/gcp20/prototype/dns_response_builder.h
diff --git a/cloud_print/gcp20/prototype/dns_response_builder.h b/cloud_print/gcp20/prototype/dns_response_builder.h
index 0d4a3eb4b73ef3a0f2bd5bb129b6d547429ea0fd..b574ddf1dc9cfa190ddecd16820817b071e8e4de 100644
--- a/cloud_print/gcp20/prototype/dns_response_builder.h
+++ b/cloud_print/gcp20/prototype/dns_response_builder.h
@@ -40,23 +40,43 @@ class DnsResponseBuilder {
~DnsResponseBuilder();
// Methods for appending different types of responses to packet.
- void AppendPtr(const std::string& service_type, uint32 ttl,
- const std::string& service_name);
- void AppendSrv(const std::string& service_name, uint32 ttl, uint16 priority,
+ void AppendPtr(const std::string& service_type,
+ uint32 ttl,
+ const std::string& service_name,
+ bool answer);
+
+ void AppendSrv(const std::string& service_name,
+ uint32 ttl,
+ uint16 priority,
uint16 weight, uint16 http_port,
- const std::string& service_domain_name);
- void AppendA(const std::string& service_domain_name, uint32 ttl,
- net::IPAddressNumber http_ipv4);
- void AppendTxt(const std::string& service_name, uint32 ttl,
- const std::vector<std::string>& metadata);
+ const std::string& service_domain_name,
+ bool answer);
+
+ void AppendA(const std::string& service_domain_name,
+ uint32 ttl,
+ net::IPAddressNumber http_ipv4,
+ bool answer);
+
+ void AppendAAAA(const std::string& service_domain_name,
+ uint32 ttl,
+ net::IPAddressNumber http_ipv6,
+ bool answer);
+
+ void AppendTxt(const std::string& service_name,
+ uint32 ttl,
+ const std::vector<std::string>& metadata,
+ bool answer);
// Serializes packet to byte sequence.
scoped_refptr<net::IOBufferWithSize> Build();
private:
// Appends response to packet.
- void AddResponse(const std::string& name, uint16 type, uint32 ttl,
- const std::string& rdata);
+ void AddResponse(const std::string& name,
+ uint16 type,
+ uint32 ttl,
+ const std::string& rdata,
+ bool answer);
std::vector<DnsResponseRecord> responses_;
« no previous file with comments | « no previous file | cloud_print/gcp20/prototype/dns_response_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698