| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_BASE_NET_UTIL_H__ | 5 #ifndef NET_BASE_NET_UTIL_H__ |
| 6 #define NET_BASE_NET_UTIL_H__ | 6 #define NET_BASE_NET_UTIL_H__ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 124 |
| 125 // Checks the given port against a list of ports which are restricted by | 125 // Checks the given port against a list of ports which are restricted by |
| 126 // default. Returns true if the port is allowed, false if it is restricted. | 126 // default. Returns true if the port is allowed, false if it is restricted. |
| 127 bool IsPortAllowedByDefault(int port); | 127 bool IsPortAllowedByDefault(int port); |
| 128 | 128 |
| 129 // Checks the given port against a list of ports which are restricted by the | 129 // Checks the given port against a list of ports which are restricted by the |
| 130 // FTP protocol. Returns true if the port is allowed, false if it is | 130 // FTP protocol. Returns true if the port is allowed, false if it is |
| 131 // restricted. | 131 // restricted. |
| 132 bool IsPortAllowedByFtp(int port); | 132 bool IsPortAllowedByFtp(int port); |
| 133 | 133 |
| 134 // Set socket to non-blocking mode |
| 135 int SetNonBlocking(int fd); |
| 136 |
| 134 } // namespace net | 137 } // namespace net |
| 135 | 138 |
| 136 #endif // NET_BASE_NET_UTIL_H__ | 139 #endif // NET_BASE_NET_UTIL_H__ |
| 137 | 140 |
| OLD | NEW |