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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 // IPAddressNumber is used to represent an IP address's numeric value as an | 45 // IPAddressNumber is used to represent an IP address's numeric value as an |
46 // array of bytes, from most significant to least significant. This is the | 46 // array of bytes, from most significant to least significant. This is the |
47 // network byte ordering. | 47 // network byte ordering. |
48 // | 48 // |
49 // IPv4 addresses will have length 4, whereas IPv6 address will have length 16. | 49 // IPv4 addresses will have length 4, whereas IPv6 address will have length 16. |
50 typedef std::vector<unsigned char> IPAddressNumber; | 50 typedef std::vector<unsigned char> IPAddressNumber; |
51 typedef std::vector<IPAddressNumber> IPAddressList; | 51 typedef std::vector<IPAddressNumber> IPAddressList; |
52 | 52 |
53 static const size_t kIPv4AddressSize = 4; | 53 static const size_t kIPv4AddressSize = 4; |
54 static const size_t kIPv6AddressSize = 16; | 54 static const size_t kIPv6AddressSize = 16; |
| 55 #if defined(OS_WIN) |
| 56 // Bluetooth address size. Windows Bluetooth is supported via winsock. |
| 57 static const size_t kBluetoothAddressSize = 6; |
| 58 #endif |
55 | 59 |
56 // Nothing is ommitted. | 60 // Nothing is ommitted. |
57 NET_EXPORT extern const FormatUrlType kFormatUrlOmitNothing; | 61 NET_EXPORT extern const FormatUrlType kFormatUrlOmitNothing; |
58 | 62 |
59 // If set, any username and password are removed. | 63 // If set, any username and password are removed. |
60 NET_EXPORT extern const FormatUrlType kFormatUrlOmitUsernamePassword; | 64 NET_EXPORT extern const FormatUrlType kFormatUrlOmitUsernamePassword; |
61 | 65 |
62 // If the scheme is 'http://', it's removed. | 66 // If the scheme is 'http://', it's removed. |
63 NET_EXPORT extern const FormatUrlType kFormatUrlOmitHTTP; | 67 NET_EXPORT extern const FormatUrlType kFormatUrlOmitHTTP; |
64 | 68 |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 DSCP_CS5 = 40, // Video | 531 DSCP_CS5 = 40, // Video |
528 DSCP_EF = 46, // Voice | 532 DSCP_EF = 46, // Voice |
529 DSCP_CS6 = 48, // Voice | 533 DSCP_CS6 = 48, // Voice |
530 DSCP_CS7 = 56, // Control messages | 534 DSCP_CS7 = 56, // Control messages |
531 DSCP_LAST = DSCP_CS7 | 535 DSCP_LAST = DSCP_CS7 |
532 }; | 536 }; |
533 | 537 |
534 } // namespace net | 538 } // namespace net |
535 | 539 |
536 #endif // NET_BASE_NET_UTIL_H_ | 540 #endif // NET_BASE_NET_UTIL_H_ |
OLD | NEW |