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

Unified Diff: net/base/net_util.h

Issue 1230313005: split port_util.h off of net_util.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove garbage that got added Created 5 years, 5 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/host_port_pair.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
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);
« no previous file with comments | « net/base/host_port_pair.cc ('k') | net/base/net_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698