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

Side by Side Diff: net/base/dns_util.h

Issue 6180001: net: enable DnsRRResolver on Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/common.gypi ('k') | net/base/dnsrr_resolver.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_BASE_DNS_UTIL_H_ 5 #ifndef NET_BASE_DNS_UTIL_H_
6 #define NET_BASE_DNS_UTIL_H_ 6 #define NET_BASE_DNS_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 // Returns true iff the given character is in the set of valid DNS label 22 // Returns true iff the given character is in the set of valid DNS label
23 // characters as given in RFC 3490, 4.1, 3(a) 23 // characters as given in RFC 3490, 4.1, 3(a)
24 bool IsSTD3ASCIIValidCharacter(char c); 24 bool IsSTD3ASCIIValidCharacter(char c);
25 25
26 // Returns the hostname by trimming the ending dot, if one exists. 26 // Returns the hostname by trimming the ending dot, if one exists.
27 std::string TrimEndingDot(const std::string& host); 27 std::string TrimEndingDot(const std::string& host);
28 28
29 // DNS resource record types. See 29 // DNS resource record types. See
30 // http://www.iana.org/assignments/dns-parameters 30 // http://www.iana.org/assignments/dns-parameters
31 // WARNING: if you're adding any new values here you may need to add them to
32 // dnsrr_resolver.cc:DnsRRIsParsedByWindows.
31 33
32 static const uint16 kDNS_CNAME = 5; 34 static const uint16 kDNS_CNAME = 5;
33 static const uint16 kDNS_TXT = 16; 35 static const uint16 kDNS_TXT = 16;
34 static const uint16 kDNS_CERT = 37; 36 static const uint16 kDNS_CERT = 37;
35 static const uint16 kDNS_DS = 43; 37 static const uint16 kDNS_DS = 43;
36 static const uint16 kDNS_RRSIG = 46; 38 static const uint16 kDNS_RRSIG = 46;
37 static const uint16 kDNS_DNSKEY = 48; 39 static const uint16 kDNS_DNSKEY = 48;
38 static const uint16 kDNS_ANY = 0xff; 40 static const uint16 kDNS_ANY = 0xff;
39 static const uint16 kDNS_CAA = 13172; // temporary, not IANA 41 static const uint16 kDNS_CAA = 13172; // temporary, not IANA
40 static const uint16 kDNS_TESTING = 0xfffe; // in private use area. 42 static const uint16 kDNS_TESTING = 0xfffe; // in private use area.
41 43
42 // http://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml 44 // http://www.iana.org/assignments/dns-sec-alg-numbers/dns-sec-alg-numbers.xhtml
43 static const uint8 kDNSSEC_RSA_SHA1 = 5; 45 static const uint8 kDNSSEC_RSA_SHA1 = 5;
44 static const uint8 kDNSSEC_RSA_SHA1_NSEC3 = 7; 46 static const uint8 kDNSSEC_RSA_SHA1_NSEC3 = 7;
45 static const uint8 kDNSSEC_RSA_SHA256 = 8; 47 static const uint8 kDNSSEC_RSA_SHA256 = 8;
46 48
47 // RFC 4509 49 // RFC 4509
48 static const uint8 kDNSSEC_SHA1 = 1; 50 static const uint8 kDNSSEC_SHA1 = 1;
49 static const uint8 kDNSSEC_SHA256 = 2; 51 static const uint8 kDNSSEC_SHA256 = 2;
50 52
51 } // namespace net 53 } // namespace net
52 54
53 #endif // NET_BASE_DNS_UTIL_H_ 55 #endif // NET_BASE_DNS_UTIL_H_
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | net/base/dnsrr_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698