| 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 SSID of the currently associated WiFi access point if there is one. |
| 500 // Otherwise, returns empty string. |
| 501 // Currently only implemented on Linux, ChromeOS and Android. |
| 502 NET_EXPORT std::string GetWifiSSID(); |
| 503 |
| 499 // General category of the IEEE 802.11 (wifi) physical layer operating mode. | 504 // General category of the IEEE 802.11 (wifi) physical layer operating mode. |
| 500 enum WifiPHYLayerProtocol { | 505 enum WifiPHYLayerProtocol { |
| 501 // No wifi support or no associated AP. | 506 // No wifi support or no associated AP. |
| 502 WIFI_PHY_LAYER_PROTOCOL_NONE, | 507 WIFI_PHY_LAYER_PROTOCOL_NONE, |
| 503 // An obsolete modes introduced by the original 802.11, e.g. IR, FHSS. | 508 // An obsolete modes introduced by the original 802.11, e.g. IR, FHSS. |
| 504 WIFI_PHY_LAYER_PROTOCOL_ANCIENT, | 509 WIFI_PHY_LAYER_PROTOCOL_ANCIENT, |
| 505 // 802.11a, OFDM-based rates. | 510 // 802.11a, OFDM-based rates. |
| 506 WIFI_PHY_LAYER_PROTOCOL_A, | 511 WIFI_PHY_LAYER_PROTOCOL_A, |
| 507 // 802.11b, DSSS or HR DSSS. | 512 // 802.11b, DSSS or HR DSSS. |
| 508 WIFI_PHY_LAYER_PROTOCOL_B, | 513 WIFI_PHY_LAYER_PROTOCOL_B, |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 DSCP_CS5 = 40, // Video | 578 DSCP_CS5 = 40, // Video |
| 574 DSCP_EF = 46, // Voice | 579 DSCP_EF = 46, // Voice |
| 575 DSCP_CS6 = 48, // Voice | 580 DSCP_CS6 = 48, // Voice |
| 576 DSCP_CS7 = 56, // Control messages | 581 DSCP_CS7 = 56, // Control messages |
| 577 DSCP_LAST = DSCP_CS7 | 582 DSCP_LAST = DSCP_CS7 |
| 578 }; | 583 }; |
| 579 | 584 |
| 580 } // namespace net | 585 } // namespace net |
| 581 | 586 |
| 582 #endif // NET_BASE_NET_UTIL_H_ | 587 #endif // NET_BASE_NET_UTIL_H_ |
| OLD | NEW |