OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 COMPONENTS_METRICS_NET_WIFI_ACCESS_POINT_INFO_PROVIDER_H_ | 5 #ifndef COMPONENTS_METRICS_NET_WIFI_ACCESS_POINT_INFO_PROVIDER_H_ |
6 #define COMPONENTS_METRICS_NET_WIFI_ACCESS_POINT_INFO_PROVIDER_H_ | 6 #define COMPONENTS_METRICS_NET_WIFI_ACCESS_POINT_INFO_PROVIDER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 | 10 |
| 11 namespace metrics { |
| 12 |
11 // Interface for accessing connected wireless access point information. | 13 // Interface for accessing connected wireless access point information. |
12 class WifiAccessPointInfoProvider { | 14 class WifiAccessPointInfoProvider { |
13 public: | 15 public: |
14 // Wifi access point security mode definitions. | 16 // Wifi access point security mode definitions. |
15 enum WifiSecurityMode { | 17 enum WifiSecurityMode { |
16 WIFI_SECURITY_UNKNOWN = 0, | 18 WIFI_SECURITY_UNKNOWN = 0, |
17 WIFI_SECURITY_WPA = 1, | 19 WIFI_SECURITY_WPA = 1, |
18 WIFI_SECURITY_WEP = 2, | 20 WIFI_SECURITY_WEP = 2, |
19 WIFI_SECURITY_RSN = 3, | 21 WIFI_SECURITY_RSN = 3, |
20 WIFI_SECURITY_802_1X = 4, | 22 WIFI_SECURITY_802_1X = 4, |
(...skipping 18 matching lines...) Expand all Loading... |
39 | 41 |
40 // Fill in the wifi access point info if device is currently connected to a | 42 // Fill in the wifi access point info if device is currently connected to a |
41 // wifi access point. Return true if device is connected to a wifi access | 43 // wifi access point. Return true if device is connected to a wifi access |
42 // point, false otherwise. | 44 // point, false otherwise. |
43 virtual bool GetInfo(WifiAccessPointInfo *info); | 45 virtual bool GetInfo(WifiAccessPointInfo *info); |
44 | 46 |
45 private: | 47 private: |
46 DISALLOW_COPY_AND_ASSIGN(WifiAccessPointInfoProvider); | 48 DISALLOW_COPY_AND_ASSIGN(WifiAccessPointInfoProvider); |
47 }; | 49 }; |
48 | 50 |
| 51 } // namespace metrics |
| 52 |
49 #endif // COMPONENTS_METRICS_NET_WIFI_ACCESS_POINT_INFO_PROVIDER_H_ | 53 #endif // COMPONENTS_METRICS_NET_WIFI_ACCESS_POINT_INFO_PROVIDER_H_ |
OLD | NEW |