| Index: net/base/net_util.h
|
| ===================================================================
|
| --- net/base/net_util.h (revision 29226)
|
| +++ net/base/net_util.h (working copy)
|
| @@ -158,6 +158,17 @@
|
| std::string CanonicalizeHost(const std::wstring& host,
|
| url_canon::CanonHostInfo* host_info);
|
|
|
| +// Returns true if |host| is RFC 1738-compliant (and not an IP address). The
|
| +// rules are:
|
| +// * One or more components separated by '.'
|
| +// * Each component begins and ends with an alphanumeric character
|
| +// * Each component contains only alphanumeric characters and '-'
|
| +// * The last component does not begin with a digit
|
| +//
|
| +// NOTE: You should only pass in hosts that have been returned from
|
| +// CanonicalizeHost(), or you may not get accurate results.
|
| +bool IsCanonicalizedHostRFC1738Compliant(const std::string& host);
|
| +
|
| // Call these functions to get the html snippet for a directory listing.
|
| // The return values of both functions are in UTF-8.
|
| std::string GetDirectoryListingHeader(const string16& title);
|
|
|