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 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 509 }; | 509 }; |
| 510 | 510 |
| 511 typedef std::vector<NetworkInterface> NetworkInterfaceList; | 511 typedef std::vector<NetworkInterface> NetworkInterfaceList; |
| 512 | 512 |
| 513 // Returns list of network interfaces except loopback interface. If an | 513 // Returns list of network interfaces except loopback interface. If an |
| 514 // interface has more than one address, a separate entry is added to | 514 // interface has more than one address, a separate entry is added to |
| 515 // the list for each address. | 515 // the list for each address. |
| 516 // Can be called only on a thread that allows IO. | 516 // Can be called only on a thread that allows IO. |
| 517 NET_EXPORT bool GetNetworkList(NetworkInterfaceList* networks); | 517 NET_EXPORT bool GetNetworkList(NetworkInterfaceList* networks); |
| 518 | 518 |
| 519 enum WifiPhyMode { | |
| 520 WIFI_PHY_MODE_NONE, | |
| 521 WIFI_PHY_MODE_ANCIENT, | |
| 522 WIFI_PHY_MODE_A, | |
| 523 WIFI_PHY_MODE_B, | |
| 524 WIFI_PHY_MODE_G, | |
| 525 WIFI_PHY_MODE_N, | |
| 526 WIFI_PHY_MODE_UNKNOWN | |
| 527 }; | |
|
Ilya Sherman
2013/02/11 06:26:13
nit: Docs?
szym
2013/02/11 08:30:53
Done.
| |
| 528 | |
| 529 // Characterize the PHY mode of the currently associated access point. | |
|
Ilya Sherman
2013/02/11 06:26:13
nit: I have no idea what "PHY" is. Is there a des
Ilya Sherman
2013/02/11 06:26:13
nit: Mention that this is only implemented on Wind
szym
2013/02/11 08:30:53
Done.
PHY is not an acronym. It stands for "physi
szym
2013/02/11 08:30:53
Done.
| |
| 530 NET_EXPORT WifiPhyMode GetWifiPhyMode(); | |
| 531 | |
| 519 } // namespace net | 532 } // namespace net |
| 520 | 533 |
| 521 #endif // NET_BASE_NET_UTIL_H_ | 534 #endif // NET_BASE_NET_UTIL_H_ |
| OLD | NEW |