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. |