Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_METRICS_WIFI_ACCESS_POINT_INFO_PROVIDER_H_ | |
| 6 #define CHROME_BROWSER_METRICS_WIFI_ACCESS_POINT_INFO_PROVIDER_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 // Wifi access point security mode definitions. | |
| 11 enum WifiSecurityMode { | |
|
stevenjb
2014/07/29 17:17:52
We should either make these part of WifiAccessPoin
| |
| 12 WIFI_SECURITY_UNKNOWN = 0, | |
| 13 WIFI_SECURITY_WPA = 1, | |
| 14 WIFI_SECURITY_WEP = 2, | |
| 15 WIFI_SECURITY_RSN = 3, | |
| 16 WIFI_SECURITY_802_1X = 4, | |
| 17 WIFI_SECURITY_PSK = 5, | |
| 18 WIFI_SECURITY_NONE | |
| 19 }; | |
| 20 | |
| 21 // Information of the currently connected wifi access point. | |
| 22 struct WifiAccessPointInfo { | |
| 23 WifiAccessPointInfo() {} | |
| 24 ~WifiAccessPointInfo() {} | |
| 25 WifiSecurityMode security; | |
| 26 std::string bssid; | |
| 27 std::string model_number; | |
| 28 std::string model_name; | |
| 29 std::string device_name; | |
| 30 std::string oui_list; | |
| 31 }; | |
| 32 | |
| 33 // Interface for accessing connected wireless access point information. | |
| 34 class WifiAccessPointInfoProvider { | |
| 35 public: | |
| 36 WifiAccessPointInfoProvider() {} | |
| 37 virtual ~WifiAccessPointInfoProvider() {} | |
| 38 | |
| 39 // Fill in the wifi access point info if device is currently connected to a | |
| 40 // wifi access point. Return true if device is connected to a wifi access | |
| 41 // point, false otherwise. | |
| 42 virtual bool GetInfo(WifiAccessPointInfo *info) = 0; | |
| 43 }; | |
| 44 | |
| 45 #endif // CHROME_BROWSER_METRICS_WIFI_ACCESS_POINT_INFO_PROVIDER_H_ | |
| OLD | NEW |