diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-17 17:20:28 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-17 17:20:28 +0000 |
commit | f060be3754a92a80e2f4402bde51763663f444d9 (patch) | |
tree | d2805ea3f4600fcdad167345501e1f17111ec2f5 /net/base/dns_util.h | |
parent | f2e430a18f74fcb5972945c05cc08aa321ca6953 (diff) | |
download | chromium_src-f060be3754a92a80e2f4402bde51763663f444d9.zip chromium_src-f060be3754a92a80e2f4402bde51763663f444d9.tar.gz chromium_src-f060be3754a92a80e2f4402bde51763663f444d9.tar.bz2 |
HSTS: add net-internals UI.
This change adds a simple DOMUI interface to the HSTS list. Since the
list is stored, hashed in memory and on disk, there's no list of
entries. But the set can be queried and we can provide insertion and
deletion.
BUG=none
TEST=Open about:net-internals, goto HSTS tab.
Review URL: http://codereview.chromium.org/6500010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75282 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/dns_util.h')
-rw-r--r-- | net/base/dns_util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/base/dns_util.h b/net/base/dns_util.h index d86fcb9..40e8736 100644 --- a/net/base/dns_util.h +++ b/net/base/dns_util.h @@ -19,6 +19,9 @@ namespace net { // out: a result in DNS form: "\x03www\x06google\x03com\x00" bool DNSDomainFromDot(const std::string& dotted, std::string* out); +// DNSDomainToString coverts a domain in DNS format to a dotted string. +std::string DNSDomainToString(const std::string& domain); + // Returns true iff the given character is in the set of valid DNS label // characters as given in RFC 3490, 4.1, 3(a) bool IsSTD3ASCIIValidCharacter(char c); |