diff options
Diffstat (limited to 'net/base/net_util.h')
-rw-r--r-- | net/base/net_util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/base/net_util.h b/net/base/net_util.h index db28a76..6ceead7 100644 --- a/net/base/net_util.h +++ b/net/base/net_util.h @@ -131,6 +131,11 @@ bool IsPortAllowedByDefault(int port); // restricted. bool IsPortAllowedByFtp(int port); +// Get the port number for the URL. If the URL does not have a port number, +// then returns the default port for the scheme. If the scheme is unrecognized +// returns empty string. +std::string GetImplicitPort(const GURL& url); + } // namespace net #endif // NET_BASE_NET_UTIL_H__ |