OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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> |
11 #include <unicode/ulocdata.h> | 11 #include <unicode/ulocdata.h> |
12 #include <unicode/uniset.h> | 12 #include <unicode/uniset.h> |
13 #include <unicode/uscript.h> | 13 #include <unicode/uscript.h> |
14 #include <unicode/uset.h> | 14 #include <unicode/uset.h> |
15 | 15 |
16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
17 | 17 |
18 #if defined(OS_WIN) | 18 #if defined(OS_WIN) |
19 #include <windows.h> | 19 #include <windows.h> |
20 #include <winsock2.h> | 20 #include <winsock2.h> |
21 #include <ws2tcpip.h> | 21 #include <ws2tcpip.h> |
22 #include <wspiapi.h> // Needed for Win2k compat. | 22 #include <wspiapi.h> // Needed for Win2k compat. |
23 #elif defined(OS_POSIX) | 23 #elif defined(OS_POSIX) |
24 #include <fcntl.h> | 24 #include <fcntl.h> |
25 #include <ifaddrs.h> | 25 #include <ifaddrs.h> |
26 #include <netdb.h> | 26 #include <netdb.h> |
27 #include <sys/socket.h> | |
27 #include <net/if.h> | 28 #include <net/if.h> |
28 #include <sys/socket.h> | 29 #include <netinet/in.h> |
Evan Martin
2010/05/19 11:50:11
Is this ordering required? We typically alphabeti
| |
29 #endif | 30 #endif |
30 | 31 |
31 #include "base/base64.h" | 32 #include "base/base64.h" |
32 #include "base/basictypes.h" | 33 #include "base/basictypes.h" |
33 #include "base/file_path.h" | 34 #include "base/file_path.h" |
34 #include "base/file_util.h" | 35 #include "base/file_util.h" |
35 #include "base/i18n/file_util_icu.h" | 36 #include "base/i18n/file_util_icu.h" |
36 #include "base/i18n/icu_string_conversions.h" | 37 #include "base/i18n/icu_string_conversions.h" |
37 #include "base/i18n/time_formatting.h" | 38 #include "base/i18n/time_formatting.h" |
38 #include "base/json/string_escape.h" | 39 #include "base/json/string_escape.h" |
(...skipping 1700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1739 | 1740 |
1740 IPv6SupportResults(IPV6_GLOBAL_ADDRESS_MISSING); | 1741 IPv6SupportResults(IPV6_GLOBAL_ADDRESS_MISSING); |
1741 return false; | 1742 return false; |
1742 #else | 1743 #else |
1743 NOTIMPLEMENTED(); | 1744 NOTIMPLEMENTED(); |
1744 return true; | 1745 return true; |
1745 #endif // defined(various platforms) | 1746 #endif // defined(various platforms) |
1746 } | 1747 } |
1747 | 1748 |
1748 } // namespace net | 1749 } // namespace net |
OLD | NEW |