Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(643)

Side by Side Diff: net/base/net_util.h

Issue 12082090: [net] Add WifiPhyMode to SystemProfile (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix logic Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 // General category of the IEEE 802.11 (wifi) physical layer operating mode.
520 enum WifiPhyMode {
521 // No wifi support or no associated AP.
522 WIFI_PHY_MODE_NONE,
523 // An obsolete modes introduced by the original 802.11, e.g. IR, FHSS,
524 WIFI_PHY_MODE_ANCIENT,
525 // 802.11a, OFDM-based rates.
526 WIFI_PHY_MODE_A,
527 // 802.11b, DSSS or HR DSSS.
528 WIFI_PHY_MODE_B,
529 // 802.11g, same rates as 802.11a but compatible with 802.11b.
530 WIFI_PHY_MODE_G,
531 // 802.11n, HT rates.
532 WIFI_PHY_MODE_N,
533 // Unclassified mode or failure to identify.
534 WIFI_PHY_MODE_UNKNOWN
535 };
536
537 // Characterize the PHY mode of the currently associated access point.
538 // Currently only available on OS_WIN.
539 NET_EXPORT WifiPhyMode GetWifiPhyMode();
540
519 } // namespace net 541 } // namespace net
520 542
521 #endif // NET_BASE_NET_UTIL_H_ 543 #endif // NET_BASE_NET_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698