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

Unified Diff: net/base/net_util.h

Issue 1151843002: DO NOT LAND Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More. Created 5 years, 7 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
Index: net/base/net_util.h
diff --git a/net/base/net_util.h b/net/base/net_util.h
index 32e2287f9092867b9ab819e459253a3f13979b50..b6fb7883cc9a1101ce1c4152dc4385c14c69c536 100644
--- a/net/base/net_util.h
+++ b/net/base/net_util.h
@@ -33,6 +33,8 @@ class Time;
}
namespace url {
+class Origin;
+
struct CanonHostInfo;
struct Parsed;
}
@@ -99,6 +101,7 @@ NET_EXPORT bool ParseHostAndPort(
// Returns a host:port string for the given URL.
NET_EXPORT std::string GetHostAndPort(const GURL& url);
+NET_EXPORT std::string GetHostAndPort(const url::Origin& origin);
// Returns a host[:port] string for the given URL, where the port is omitted
// if it is the default for the URL's scheme.
« no previous file with comments | « net/base/host_port_pair.cc ('k') | net/base/net_util.cc » ('j') | net/base/net_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698