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

Unified Diff: net/base/net_util.h

Issue 194057: Check in patch for pierre.lafayette, http://codereview.chromium.org/178059/sh... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « chrome/browser/browser_init.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
===================================================================
--- net/base/net_util.h (revision 25619)
+++ net/base/net_util.h (working copy)
@@ -12,6 +12,7 @@
#endif
#include <string>
+#include <set>
#include "base/basictypes.h"
#include "base/string16.h"
@@ -35,6 +36,9 @@
namespace net {
+// Holds a list of ports that should be accepted despite bans.
+extern std::set<int> explicitly_allowed_ports;
+
// Given the full path to a file name, creates a file: URL. The returned URL
// may not be valid if the input is malformed.
GURL FilePathToFileURL(const FilePath& path);
@@ -191,6 +195,10 @@
// restricted.
bool IsPortAllowedByFtp(int port);
+// Check if banned |port| has been overriden by an entry in
+// |explicitly_allowed_ports_|.
+bool IsPortAllowedByOverride(int port);
+
// Set socket to non-blocking mode
int SetNonBlocking(int fd);
@@ -230,6 +238,8 @@
// - reference section
GURL SimplifyUrlForRequest(const GURL& url);
+void SetExplicitlyAllowedPorts(const std::wstring& allowed_ports);
+
} // namespace net
#endif // NET_BASE_NET_UTIL_H__
« no previous file with comments | « chrome/browser/browser_init.cc ('k') | net/base/net_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698