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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 VMWare host only network interfaces. |
| 534 enum HostScopeVirtualInterfacePolicy { | 534 enum HostScopeVirtualInterfacePolicy { |
|
agl
2014/03/27 14:52:53
The name and comment of this enum are no longer co
Mallinath (Gone from Chromium)
2014/03/27 19:04:18
Done.
| |
| 535 INCLUDE_HOST_SCOPE_VIRTUAL_INTERFACES, | 535 INCLUDE_HOST_SCOPE_VIRTUAL_INTERFACES = 0x1, |
| 536 EXCLUDE_HOST_SCOPE_VIRTUAL_INTERFACES, | 536 EXCLUDE_HOST_SCOPE_VIRTUAL_INTERFACES = 0x2, |
|
agl
2014/03/27 14:52:53
why not assign zero to EXCLUDE_HOST_SCOPE_VIRTUAL_
Mallinath (Gone from Chromium)
2014/03/27 19:04:18
Done.
| |
| 537 // Include temp address only when interface both permanent and temp addresses. | |
|
agl
2014/03/27 14:52:53
missing "has"?
Mallinath (Gone from Chromium)
2014/03/27 19:04:18
Done.
| |
| 538 INCLUDE_IPV6_TEMP_ADDRESS_IF_AVAILABLE = 0x4, | |
|
agl
2014/03/27 14:52:53
INCLUDE_ONLY_TEMP_IPV6_ADDRESS_IF_POSSIBLE ?
Mallinath (Gone from Chromium)
2014/03/27 19:04:18
Done.
| |
| 537 }; | 539 }; |
| 538 | 540 |
| 539 // Returns list of network interfaces except loopback interface. If an | 541 // Returns list of network interfaces except loopback interface. If an |
| 540 // interface has more than one address, a separate entry is added to | 542 // interface has more than one address, a separate entry is added to |
| 541 // the list for each address. | 543 // the list for each address. |
| 542 // Can be called only on a thread that allows IO. | 544 // Can be called only on a thread that allows IO. |
| 543 NET_EXPORT bool GetNetworkList(NetworkInterfaceList* networks, | 545 NET_EXPORT bool GetNetworkList(NetworkInterfaceList* networks, |
| 544 HostScopeVirtualInterfacePolicy policy); | 546 int policy); |
| 545 | 547 |
| 546 // General category of the IEEE 802.11 (wifi) physical layer operating mode. | 548 // General category of the IEEE 802.11 (wifi) physical layer operating mode. |
| 547 enum WifiPHYLayerProtocol { | 549 enum WifiPHYLayerProtocol { |
| 548 // No wifi support or no associated AP. | 550 // No wifi support or no associated AP. |
| 549 WIFI_PHY_LAYER_PROTOCOL_NONE, | 551 WIFI_PHY_LAYER_PROTOCOL_NONE, |
| 550 // An obsolete modes introduced by the original 802.11, e.g. IR, FHSS. | 552 // An obsolete modes introduced by the original 802.11, e.g. IR, FHSS. |
| 551 WIFI_PHY_LAYER_PROTOCOL_ANCIENT, | 553 WIFI_PHY_LAYER_PROTOCOL_ANCIENT, |
| 552 // 802.11a, OFDM-based rates. | 554 // 802.11a, OFDM-based rates. |
| 553 WIFI_PHY_LAYER_PROTOCOL_A, | 555 WIFI_PHY_LAYER_PROTOCOL_A, |
| 554 // 802.11b, DSSS or HR DSSS. | 556 // 802.11b, DSSS or HR DSSS. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 598 DSCP_CS5 = 40, // Video | 600 DSCP_CS5 = 40, // Video |
| 599 DSCP_EF = 46, // Voice | 601 DSCP_EF = 46, // Voice |
| 600 DSCP_CS6 = 48, // Voice | 602 DSCP_CS6 = 48, // Voice |
| 601 DSCP_CS7 = 56, // Control messages | 603 DSCP_CS7 = 56, // Control messages |
| 602 DSCP_LAST = DSCP_CS7 | 604 DSCP_LAST = DSCP_CS7 |
| 603 }; | 605 }; |
| 604 | 606 |
| 605 } // namespace net | 607 } // namespace net |
| 606 | 608 |
| 607 #endif // NET_BASE_NET_UTIL_H_ | 609 #endif // NET_BASE_NET_UTIL_H_ |
| OLD | NEW |