summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortoyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-01 06:47:17 +0000
committertoyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-01 06:47:17 +0000
commit41517b9911563e2a62647aba006118a2b9757718 (patch)
tree23fde1fee27963f925d2be70a964c25cea048f96
parent88cc7818c81afdcb418f8fd0486b2c8f57457525 (diff)
downloadchromium_src-41517b9911563e2a62647aba006118a2b9757718.zip
chromium_src-41517b9911563e2a62647aba006118a2b9757718.tar.gz
chromium_src-41517b9911563e2a62647aba006118a2b9757718.tar.bz2
export IsPortAllowedByDefault()
BUG=n/a TEST=n/a Review URL: http://codereview.chromium.org/8747004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112413 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--net/base/net_util.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/net/base/net_util.h b/net/base/net_util.h
index c51ca3d..c417688 100644
--- a/net/base/net_util.h
+++ b/net/base/net_util.h
@@ -308,13 +308,12 @@ NET_EXPORT void GenerateSafeFileName(const std::string& mime_type,
bool ignore_extension,
FilePath* file_path);
-// Checks the given port against a list of ports which are restricted by
-// default. Returns true if the port is allowed, false if it is restricted.
-bool IsPortAllowedByDefault(int port);
+// Checks |port| against a list of ports which are restricted by default.
+// Returns true if |port| is allowed, false if it is restricted.
+NET_EXPORT bool IsPortAllowedByDefault(int port);
-// Checks the given port against a list of ports which are restricted by the
-// FTP protocol. Returns true if the port is allowed, false if it is
-// restricted.
+// Checks |port| against a list of ports which are restricted by the FTP
+// protocol. Returns true if |port| is allowed, false if it is restricted.
bool IsPortAllowedByFtp(int port);
// Check if banned |port| has been overriden by an entry in