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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 489 EXCLUDE_HOST_SCOPE_VIRTUAL_INTERFACES = 0x1, | 489 EXCLUDE_HOST_SCOPE_VIRTUAL_INTERFACES = 0x1, |
| 490 }; | 490 }; |
| 491 | 491 |
| 492 // Returns list of network interfaces except loopback interface. If an | 492 // Returns list of network interfaces except loopback interface. If an |
| 493 // interface has more than one address, a separate entry is added to | 493 // interface has more than one address, a separate entry is added to |
| 494 // the list for each address. | 494 // the list for each address. |
| 495 // Can be called only on a thread that allows IO. | 495 // Can be called only on a thread that allows IO. |
| 496 NET_EXPORT bool GetNetworkList(NetworkInterfaceList* networks, | 496 NET_EXPORT bool GetNetworkList(NetworkInterfaceList* networks, |
| 497 int policy); | 497 int policy); |
| 498 | 498 |
| 499 // Gets the current connection type based on |interfaces|. Returns | |
| 500 // CONNECTION_NONE if there are no interfaces, CONNECTION_UNKNOWN if two | |
| 501 // interfaces have different connection types or the connection type of all | |
| 502 // interfaces if they have the same interface type. | |
| 503 NET_EXPORT NetworkChangeNotifier::ConnectionType | |
| 504 ConnectionTypeFromInterfaceList(const NetworkInterfaceList& interfaces); | |
|
pauljensen
2015/01/15 15:05:10
Please move this to network_change_notifier.h as i
derekjchow1
2015/01/15 20:32:51
Done.
| |
| 505 | |
| 499 // General category of the IEEE 802.11 (wifi) physical layer operating mode. | 506 // General category of the IEEE 802.11 (wifi) physical layer operating mode. |
| 500 enum WifiPHYLayerProtocol { | 507 enum WifiPHYLayerProtocol { |
| 501 // No wifi support or no associated AP. | 508 // No wifi support or no associated AP. |
| 502 WIFI_PHY_LAYER_PROTOCOL_NONE, | 509 WIFI_PHY_LAYER_PROTOCOL_NONE, |
| 503 // An obsolete modes introduced by the original 802.11, e.g. IR, FHSS. | 510 // An obsolete modes introduced by the original 802.11, e.g. IR, FHSS. |
| 504 WIFI_PHY_LAYER_PROTOCOL_ANCIENT, | 511 WIFI_PHY_LAYER_PROTOCOL_ANCIENT, |
| 505 // 802.11a, OFDM-based rates. | 512 // 802.11a, OFDM-based rates. |
| 506 WIFI_PHY_LAYER_PROTOCOL_A, | 513 WIFI_PHY_LAYER_PROTOCOL_A, |
| 507 // 802.11b, DSSS or HR DSSS. | 514 // 802.11b, DSSS or HR DSSS. |
| 508 WIFI_PHY_LAYER_PROTOCOL_B, | 515 WIFI_PHY_LAYER_PROTOCOL_B, |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 573 DSCP_CS5 = 40, // Video | 580 DSCP_CS5 = 40, // Video |
| 574 DSCP_EF = 46, // Voice | 581 DSCP_EF = 46, // Voice |
| 575 DSCP_CS6 = 48, // Voice | 582 DSCP_CS6 = 48, // Voice |
| 576 DSCP_CS7 = 56, // Control messages | 583 DSCP_CS7 = 56, // Control messages |
| 577 DSCP_LAST = DSCP_CS7 | 584 DSCP_LAST = DSCP_CS7 |
| 578 }; | 585 }; |
| 579 | 586 |
| 580 } // namespace net | 587 } // namespace net |
| 581 | 588 |
| 582 #endif // NET_BASE_NET_UTIL_H_ | 589 #endif // NET_BASE_NET_UTIL_H_ |
| OLD | NEW |