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

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

Issue 878513008: Add a function to get Wifi SSID to net_util. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove NetworkInterfaceList argument. Created 5 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
« no previous file with comments | « no previous file | net/base/net_util_linux.h » ('j') | net/base/net_util_linux.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 access point.
pauljensen 2015/02/09 12:28:04 Might want to mention it only works if there is on
meacer 2015/02/10 04:42:50 Done.
500 // Currently only available on OS_LINUX.
pauljensen 2015/02/09 12:28:05 If this works on ChromeOS and Android, shouldn't w
meacer 2015/02/10 04:42:50 It actually already works on ChromeOS and Android
501 NET_EXPORT std::string GetWifiSSID();
502
499 // General category of the IEEE 802.11 (wifi) physical layer operating mode. 503 // General category of the IEEE 802.11 (wifi) physical layer operating mode.
500 enum WifiPHYLayerProtocol { 504 enum WifiPHYLayerProtocol {
501 // No wifi support or no associated AP. 505 // No wifi support or no associated AP.
502 WIFI_PHY_LAYER_PROTOCOL_NONE, 506 WIFI_PHY_LAYER_PROTOCOL_NONE,
503 // An obsolete modes introduced by the original 802.11, e.g. IR, FHSS. 507 // An obsolete modes introduced by the original 802.11, e.g. IR, FHSS.
504 WIFI_PHY_LAYER_PROTOCOL_ANCIENT, 508 WIFI_PHY_LAYER_PROTOCOL_ANCIENT,
505 // 802.11a, OFDM-based rates. 509 // 802.11a, OFDM-based rates.
506 WIFI_PHY_LAYER_PROTOCOL_A, 510 WIFI_PHY_LAYER_PROTOCOL_A,
507 // 802.11b, DSSS or HR DSSS. 511 // 802.11b, DSSS or HR DSSS.
508 WIFI_PHY_LAYER_PROTOCOL_B, 512 WIFI_PHY_LAYER_PROTOCOL_B,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 DSCP_CS5 = 40, // Video 577 DSCP_CS5 = 40, // Video
574 DSCP_EF = 46, // Voice 578 DSCP_EF = 46, // Voice
575 DSCP_CS6 = 48, // Voice 579 DSCP_CS6 = 48, // Voice
576 DSCP_CS7 = 56, // Control messages 580 DSCP_CS7 = 56, // Control messages
577 DSCP_LAST = DSCP_CS7 581 DSCP_LAST = DSCP_CS7
578 }; 582 };
579 583
580 } // namespace net 584 } // namespace net
581 585
582 #endif // NET_BASE_NET_UTIL_H_ 586 #endif // NET_BASE_NET_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | net/base/net_util_linux.h » ('j') | net/base/net_util_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698