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

Unified Diff: net/base/net_util.h

Issue 113944: Use the new CanonicalizeHostVerbose() function. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: is_valid -> is_nonempty Created 11 years, 6 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 | « net/base/cookie_monster.cc ('k') | net/base/net_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_util.h
===================================================================
--- net/base/net_util.h (revision 19036)
+++ net/base/net_util.h (working copy)
@@ -24,6 +24,10 @@
class Time;
}
+namespace url_canon {
+struct CanonHostInfo;
+}
+
namespace url_parse {
struct Parsed;
}
@@ -136,10 +140,12 @@
const std::wstring& languages,
std::wstring* out);
-// Canonicalizes |host| and returns it. If |is_ip_address| is non-NULL, sets it
-// to true if |host| is an IP address.
-std::string CanonicalizeHost(const std::string& host, bool* is_ip_address);
-std::string CanonicalizeHost(const std::wstring& host, bool* is_ip_address);
+// Canonicalizes |host| and returns it. Also fills |host_info| with
+// IP address information. |host_info| must not be NULL.
+std::string CanonicalizeHost(const std::string& host,
+ url_canon::CanonHostInfo* host_info);
+std::string CanonicalizeHost(const std::wstring& host,
+ url_canon::CanonHostInfo* host_info);
// Call these functions to get the html for a directory listing.
// They will pass non-7bit-ascii characters unescaped, allowing
« no previous file with comments | « net/base/cookie_monster.cc ('k') | net/base/net_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698