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" | 8 #include "build/build_config.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
48 // IPAddressNumber is used to represent an IP address's numeric value as an | 48 // IPAddressNumber is used to represent an IP address's numeric value as an |
49 // array of bytes, from most significant to least significant. This is the | 49 // array of bytes, from most significant to least significant. This is the |
50 // network byte ordering. | 50 // network byte ordering. |
51 // | 51 // |
52 // IPv4 addresses will have length 4, whereas IPv6 address will have length 16. | 52 // IPv4 addresses will have length 4, whereas IPv6 address will have length 16. |
53 typedef std::vector<unsigned char> IPAddressNumber; | 53 typedef std::vector<unsigned char> IPAddressNumber; |
54 typedef std::vector<IPAddressNumber> IPAddressList; | 54 typedef std::vector<IPAddressNumber> IPAddressList; |
55 | 55 |
56 static const size_t kIPv4AddressSize = 4; | 56 static const size_t kIPv4AddressSize = 4; |
57 static const size_t kIPv6AddressSize = 16; | 57 static const size_t kIPv6AddressSize = 16; |
58 #if defined(OS_WIN) | |
59 // Bluetooth address size. Windows Bluetooth is supported via winsock. | |
60 static const size_t kBthAddressSize = 6; | |
wtc
2014/04/28 23:54:43
Nit: I suggest using "Bluetooh" instead of "Bth" i
xiyuan
2014/04/29 00:50:26
Done.
| |
61 #endif | |
58 | 62 |
59 // Nothing is ommitted. | 63 // Nothing is ommitted. |
60 NET_EXPORT extern const FormatUrlType kFormatUrlOmitNothing; | 64 NET_EXPORT extern const FormatUrlType kFormatUrlOmitNothing; |
61 | 65 |
62 // If set, any username and password are removed. | 66 // If set, any username and password are removed. |
63 NET_EXPORT extern const FormatUrlType kFormatUrlOmitUsernamePassword; | 67 NET_EXPORT extern const FormatUrlType kFormatUrlOmitUsernamePassword; |
64 | 68 |
65 // If the scheme is 'http://', it's removed. | 69 // If the scheme is 'http://', it's removed. |
66 NET_EXPORT extern const FormatUrlType kFormatUrlOmitHTTP; | 70 NET_EXPORT extern const FormatUrlType kFormatUrlOmitHTTP; |
67 | 71 |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
518 DSCP_CS5 = 40, // Video | 522 DSCP_CS5 = 40, // Video |
519 DSCP_EF = 46, // Voice | 523 DSCP_EF = 46, // Voice |
520 DSCP_CS6 = 48, // Voice | 524 DSCP_CS6 = 48, // Voice |
521 DSCP_CS7 = 56, // Control messages | 525 DSCP_CS7 = 56, // Control messages |
522 DSCP_LAST = DSCP_CS7 | 526 DSCP_LAST = DSCP_CS7 |
523 }; | 527 }; |
524 | 528 |
525 } // namespace net | 529 } // namespace net |
526 | 530 |
527 #endif // NET_BASE_NET_UTIL_H_ | 531 #endif // NET_BASE_NET_UTIL_H_ |
OLD | NEW |