OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "net/base/net_util.h" | 5 #include "net/base/net_util.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 #include <unicode/ucnv.h> | 9 #include <unicode/ucnv.h> |
10 #include <unicode/uidna.h> | 10 #include <unicode/uidna.h> |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 563, // nntp+ssl | 124 563, // nntp+ssl |
125 587, // stmp? | 125 587, // stmp? |
126 601, // ?? | 126 601, // ?? |
127 636, // ldap+ssl | 127 636, // ldap+ssl |
128 993, // ldap+ssl | 128 993, // ldap+ssl |
129 995, // pop3+ssl | 129 995, // pop3+ssl |
130 2049, // nfs | 130 2049, // nfs |
131 3659, // apple-sasl / PasswordServer | 131 3659, // apple-sasl / PasswordServer |
132 4045, // lockd | 132 4045, // lockd |
133 6000, // X11 | 133 6000, // X11 |
| 134 6665, // Alternate IRC [Apple addition] |
| 135 6666, // Alternate IRC [Apple addition] |
| 136 6667, // Standard IRC [Apple addition] |
| 137 6668, // Alternate IRC [Apple addition] |
| 138 6669, // Alternate IRC [Apple addition] |
| 139 0xFFFF, // Used to block all invalid port numbers (see |
| 140 // third_party/WebKit/WebCore/platform/KURLGoogle.cpp, port()) |
134 }; | 141 }; |
135 | 142 |
136 // FTP overrides the following restricted ports. | 143 // FTP overrides the following restricted ports. |
137 static const int kAllowedFtpPorts[] = { | 144 static const int kAllowedFtpPorts[] = { |
138 21, // ftp data | 145 21, // ftp data |
139 22, // ssh | 146 22, // ssh |
140 }; | 147 }; |
141 | 148 |
142 template<typename STR> | 149 template<typename STR> |
143 STR GetSpecificHeaderT(const STR& headers, const STR& name) { | 150 STR GetSpecificHeaderT(const STR& headers, const STR& name) { |
(...skipping 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1669 | 1676 |
1670 IPv6SupportResults(IPV6_GLOBAL_ADDRESS_MISSING); | 1677 IPv6SupportResults(IPV6_GLOBAL_ADDRESS_MISSING); |
1671 return false; | 1678 return false; |
1672 #else | 1679 #else |
1673 NOTIMPLEMENTED(); | 1680 NOTIMPLEMENTED(); |
1674 return true; | 1681 return true; |
1675 #endif // defined(various platforms) | 1682 #endif // defined(various platforms) |
1676 } | 1683 } |
1677 | 1684 |
1678 } // namespace net | 1685 } // namespace net |
OLD | NEW |