Index: net/base/net_util.h |
diff --git a/net/base/net_util.h b/net/base/net_util.h |
index f9274224648e2220d90ef2daeb2c3177e361e760..628abe2095f67d89840f1cd3ae8731e7e51f29ec 100644 |
--- a/net/base/net_util.h |
+++ b/net/base/net_util.h |
@@ -211,35 +211,6 @@ NET_EXPORT base::string16 StripWWW(const base::string16& text); |
// Runs |url|'s host through StripWWW(). |url| must be valid. |
NET_EXPORT base::string16 StripWWWFromHost(const GURL& url); |
-// Checks if |port| is in the valid range (0 to 65535, though 0 is technically |
-// reserved). Should be used before casting a port to a uint16_t. |
-NET_EXPORT bool IsPortValid(int port); |
- |
-// Returns true if the port is in the range [0, 1023]. These ports are |
-// registered by IANA and typically need root access to listen on. |
-bool IsWellKnownPort(int port); |
- |
-// Checks if the port is allowed for the specified scheme. Ports set as allowed |
-// with SetExplicitlyAllowedPorts() or by using ScopedPortException() will be |
-// considered allowed for any scheme. |
-NET_EXPORT bool IsPortAllowedForScheme(int port, const std::string& url_scheme); |
- |
-// Returns the number of explicitly allowed ports; for testing. |
-NET_EXPORT_PRIVATE size_t GetCountOfExplicitlyAllowedPorts(); |
- |
-NET_EXPORT void SetExplicitlyAllowedPorts(const std::string& allowed_ports); |
- |
-class NET_EXPORT ScopedPortException { |
- public: |
- explicit ScopedPortException(int port); |
- ~ScopedPortException(); |
- |
- private: |
- int port_; |
- |
- DISALLOW_COPY_AND_ASSIGN(ScopedPortException); |
-}; |
- |
// Set socket to non-blocking mode |
NET_EXPORT int SetNonBlocking(int fd); |