Chromium Code Reviews| 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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 523 | 523 |
| 524 std::string name; | 524 std::string name; |
| 525 std::string friendly_name; // Same as |name| on non-Windows. | 525 std::string friendly_name; // Same as |name| on non-Windows. |
| 526 uint32 interface_index; // Always 0 on Android. | 526 uint32 interface_index; // Always 0 on Android. |
| 527 IPAddressNumber address; | 527 IPAddressNumber address; |
| 528 size_t network_prefix; | 528 size_t network_prefix; |
| 529 }; | 529 }; |
| 530 | 530 |
| 531 typedef std::vector<NetworkInterface> NetworkInterfaceList; | 531 typedef std::vector<NetworkInterface> NetworkInterfaceList; |
| 532 | 532 |
| 533 // Policy settings to include/exclude VMWare host only network interfaces. | 533 // Policy settings to include/exclude network interfaces. |
| 534 enum HostScopeVirtualInterfacePolicy { | 534 enum HostAddressSelectionPolicy { |
| 535 INCLUDE_HOST_SCOPE_VIRTUAL_INTERFACES, | 535 EXCLUDE_HOST_SCOPE_VIRTUAL_INTERFACES = 0x1, |
| 536 EXCLUDE_HOST_SCOPE_VIRTUAL_INTERFACES, | 536 INCLUDE_HOST_SCOPE_VIRTUAL_INTERFACES = 0x2, |
|
agl
2014/03/28 15:31:41
These are again two different flags, but I believe
| |
| 537 // Include temp address only when interface has both permanent and | |
| 538 // temp addresses. | |
| 539 INCLUDE_ONLY_TEMP_IPV6_ADDRESS_IF_POSSIBLE = 0x4, | |
| 537 }; | 540 }; |
| 538 | 541 |
| 539 // Returns list of network interfaces except loopback interface. If an | 542 // Returns list of network interfaces except loopback interface. If an |
| 540 // interface has more than one address, a separate entry is added to | 543 // interface has more than one address, a separate entry is added to |
| 541 // the list for each address. | 544 // the list for each address. |
| 542 // Can be called only on a thread that allows IO. | 545 // Can be called only on a thread that allows IO. |
| 543 NET_EXPORT bool GetNetworkList(NetworkInterfaceList* networks, | 546 NET_EXPORT bool GetNetworkList(NetworkInterfaceList* networks, |
| 544 HostScopeVirtualInterfacePolicy policy); | 547 int policy); |
| 545 | 548 |
| 546 // General category of the IEEE 802.11 (wifi) physical layer operating mode. | 549 // General category of the IEEE 802.11 (wifi) physical layer operating mode. |
| 547 enum WifiPHYLayerProtocol { | 550 enum WifiPHYLayerProtocol { |
| 548 // No wifi support or no associated AP. | 551 // No wifi support or no associated AP. |
| 549 WIFI_PHY_LAYER_PROTOCOL_NONE, | 552 WIFI_PHY_LAYER_PROTOCOL_NONE, |
| 550 // An obsolete modes introduced by the original 802.11, e.g. IR, FHSS. | 553 // An obsolete modes introduced by the original 802.11, e.g. IR, FHSS. |
| 551 WIFI_PHY_LAYER_PROTOCOL_ANCIENT, | 554 WIFI_PHY_LAYER_PROTOCOL_ANCIENT, |
| 552 // 802.11a, OFDM-based rates. | 555 // 802.11a, OFDM-based rates. |
| 553 WIFI_PHY_LAYER_PROTOCOL_A, | 556 WIFI_PHY_LAYER_PROTOCOL_A, |
| 554 // 802.11b, DSSS or HR DSSS. | 557 // 802.11b, DSSS or HR DSSS. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 598 DSCP_CS5 = 40, // Video | 601 DSCP_CS5 = 40, // Video |
| 599 DSCP_EF = 46, // Voice | 602 DSCP_EF = 46, // Voice |
| 600 DSCP_CS6 = 48, // Voice | 603 DSCP_CS6 = 48, // Voice |
| 601 DSCP_CS7 = 56, // Control messages | 604 DSCP_CS7 = 56, // Control messages |
| 602 DSCP_LAST = DSCP_CS7 | 605 DSCP_LAST = DSCP_CS7 |
| 603 }; | 606 }; |
| 604 | 607 |
| 605 } // namespace net | 608 } // namespace net |
| 606 | 609 |
| 607 #endif // NET_BASE_NET_UTIL_H_ | 610 #endif // NET_BASE_NET_UTIL_H_ |
| OLD | NEW |