OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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" | |
9 | |
10 #if defined(OS_WIN) | |
11 #include <windows.h> | |
12 #include <ws2tcpip.h> | |
13 #elif defined(OS_POSIX) | |
14 #include <sys/types.h> | |
15 #include <sys/socket.h> | |
16 #endif | |
17 | 8 |
mmenke
2015/06/03 15:21:25
nit: Remove extra blank line
eroman
2015/06/03 18:29:10
Done.
| |
18 #include <string> | 9 #include <string> |
19 #include <vector> | 10 #include <vector> |
20 | 11 |
21 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
22 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
23 #include "base/strings/utf_offset_string_conversions.h" | 14 #include "base/strings/utf_offset_string_conversions.h" |
24 #include "net/base/address_family.h" | 15 #include "net/base/address_family.h" |
25 #include "net/base/escape.h" | 16 #include "net/base/escape.h" |
26 #include "net/base/ip_address_number.h" | |
27 #include "net/base/net_export.h" | 17 #include "net/base/net_export.h" |
28 #include "net/base/network_change_notifier.h" | 18 #include "net/base/network_change_notifier.h" |
19 #include "net/base/sys_addrinfo.h" | |
29 | 20 |
30 class GURL; | 21 class GURL; |
31 | 22 |
32 namespace base { | 23 namespace base { |
33 class Time; | 24 class Time; |
34 } | 25 } |
35 | 26 |
36 namespace url { | 27 namespace url { |
37 struct CanonHostInfo; | 28 struct CanonHostInfo; |
38 struct Parsed; | 29 struct Parsed; |
39 } | 30 } |
40 | 31 |
41 namespace net { | 32 namespace net { |
42 | 33 |
34 // This is a "forward declaration" to avoid including ip_address_number.h | |
35 // Keep this in sync. | |
36 typedef std::vector<unsigned char> IPAddressNumber; | |
mmenke
2015/06/03 15:21:25
Hrm... I'm very skeptical of keeping this here.
eroman
2015/06/03 16:23:28
I could perhaps move GetAddressFamily() elsewhere.
| |
37 | |
43 // Used by FormatUrl to specify handling of certain parts of the url. | 38 // Used by FormatUrl to specify handling of certain parts of the url. |
44 typedef uint32 FormatUrlType; | 39 typedef uint32 FormatUrlType; |
45 typedef uint32 FormatUrlTypes; | 40 typedef uint32 FormatUrlTypes; |
46 | 41 |
47 #if defined(OS_WIN) | 42 #if defined(OS_WIN) |
48 // Bluetooth address size. Windows Bluetooth is supported via winsock. | 43 // Bluetooth address size. Windows Bluetooth is supported via winsock. |
49 static const size_t kBluetoothAddressSize = 6; | 44 static const size_t kBluetoothAddressSize = 6; |
50 #endif | 45 #endif |
51 | 46 |
52 // Nothing is ommitted. | 47 // Nothing is ommitted. |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
489 DSCP_CS5 = 40, // Video | 484 DSCP_CS5 = 40, // Video |
490 DSCP_EF = 46, // Voice | 485 DSCP_EF = 46, // Voice |
491 DSCP_CS6 = 48, // Voice | 486 DSCP_CS6 = 48, // Voice |
492 DSCP_CS7 = 56, // Control messages | 487 DSCP_CS7 = 56, // Control messages |
493 DSCP_LAST = DSCP_CS7 | 488 DSCP_LAST = DSCP_CS7 |
494 }; | 489 }; |
495 | 490 |
496 } // namespace net | 491 } // namespace net |
497 | 492 |
498 #endif // NET_BASE_NET_UTIL_H_ | 493 #endif // NET_BASE_NET_UTIL_H_ |
OLD | NEW |