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

Unified Diff: net/base/dns_util.h

Issue 3029035: net: add DnsRRResovler to fetch arbitary DNS resource types. (Closed)
Patch Set: Created 10 years, 5 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 | net/base/dnsrr_resolver.h » ('j') | net/base/dnsrr_resolver.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/dns_util.h
diff --git a/net/base/dns_util.h b/net/base/dns_util.h
index cd814202ae8d898a6ae7d3342970f425a6802fa0..88c48a8bbbc7cf63e4619cdea59646e185b77160 100644
--- a/net/base/dns_util.h
+++ b/net/base/dns_util.h
@@ -8,6 +8,8 @@
#include <string>
+#include "base/basictypes.h"
+
namespace net {
// DNSDomainFromDot - convert a domain string to DNS format. From DJB's
@@ -24,6 +26,14 @@ bool IsSTD3ASCIIValidCharacter(char c);
// Returns the hostname by trimming the ending dot, if one exists.
std::string TrimEndingDot(const std::string& host);
+// DNS resource record types. See
+// http://www.iana.org/assignments/dns-parameters
+
+static const uint16 kDNS_TXT = 16;
+static const uint16 kDNS_RRSIG = 46;
+static const uint16 kDNS_CERT = 37;
+static const uint16 kDNS_ANY = 0xff;
+
} // namespace net
#endif // NET_BASE_DNS_UTIL_H_
« no previous file with comments | « no previous file | net/base/dnsrr_resolver.h » ('j') | net/base/dnsrr_resolver.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698