| 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 #include <algorithm> | 5 #include <algorithm> |
| 6 #include <map> | 6 #include <map> |
| 7 #include <unicode/ucnv.h> | 7 #include <unicode/ucnv.h> |
| 8 #include <unicode/uidna.h> | 8 #include <unicode/uidna.h> |
| 9 #include <unicode/ulocdata.h> | 9 #include <unicode/ulocdata.h> |
| 10 #include <unicode/uniset.h> | 10 #include <unicode/uniset.h> |
| 11 #include <unicode/uscript.h> | 11 #include <unicode/uscript.h> |
| 12 #include <unicode/uset.h> | 12 #include <unicode/uset.h> |
| 13 | 13 |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 | 15 |
| 16 #if defined(OS_WIN) | 16 #if defined(OS_WIN) |
| 17 #include <windows.h> | 17 #include <windows.h> |
| 18 #include <winsock2.h> | 18 #include <winsock2.h> |
| 19 #include <ws2tcpip.h> | 19 #include <ws2tcpip.h> |
| 20 #include <wspiapi.h> // Needed for Win2k compat. | 20 #include <wspiapi.h> // Needed for Win2k compat. |
| 21 #elif defined(OS_POSIX) | 21 #elif defined(OS_POSIX) |
| 22 #include <netdb.h> | 22 #include <netdb.h> |
| 23 #include <sys/socket.h> | 23 #include <sys/socket.h> |
| 24 #include <fcntl.h> | 24 #include <fcntl.h> |
| 25 #endif | 25 #endif |
| 26 | 26 |
| 27 #if defined(OS_FREEBSD) |
| 28 #include <netinet/in.h> |
| 29 #endif |
| 30 |
| 27 #include "net/base/net_util.h" | 31 #include "net/base/net_util.h" |
| 28 | 32 |
| 29 #include "base/basictypes.h" | 33 #include "base/basictypes.h" |
| 30 #include "base/file_path.h" | 34 #include "base/file_path.h" |
| 31 #include "base/file_util.h" | 35 #include "base/file_util.h" |
| 32 #include "base/lock.h" | 36 #include "base/lock.h" |
| 33 #include "base/logging.h" | 37 #include "base/logging.h" |
| 34 #include "base/message_loop.h" | 38 #include "base/message_loop.h" |
| 35 #include "base/path_service.h" | 39 #include "base/path_service.h" |
| 36 #include "base/singleton.h" | 40 #include "base/singleton.h" |
| (...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1354 if (length > 0) | 1358 if (length > 0) |
| 1355 ports.insert(StringToInt(WideToASCII( | 1359 ports.insert(StringToInt(WideToASCII( |
| 1356 allowed_ports.substr(last, length)))); | 1360 allowed_ports.substr(last, length)))); |
| 1357 last = i + 1; | 1361 last = i + 1; |
| 1358 } | 1362 } |
| 1359 } | 1363 } |
| 1360 explicitly_allowed_ports = ports; | 1364 explicitly_allowed_ports = ports; |
| 1361 } | 1365 } |
| 1362 | 1366 |
| 1363 } // namespace net | 1367 } // namespace net |
| OLD | NEW |