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 CHROME_BROWSER_METRICS_WIFI_ACCESS_POINT_INFO_PROVIDER_H_ | 5 #ifndef COMPONENTS_METRICS_NET_WIFI_ACCESS_POINT_INFO_PROVIDER_H_ |
6 #define CHROME_BROWSER_METRICS_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 // Interface for accessing connected wireless access point information. | 11 // Interface for accessing connected wireless access point information. |
12 class WifiAccessPointInfoProvider { | 12 class WifiAccessPointInfoProvider { |
13 public: | 13 public: |
14 // Wifi access point security mode definitions. | 14 // Wifi access point security mode definitions. |
15 enum WifiSecurityMode { | 15 enum WifiSecurityMode { |
16 WIFI_SECURITY_UNKNOWN = 0, | 16 WIFI_SECURITY_UNKNOWN = 0, |
(...skipping 22 matching lines...) Expand all Loading... |
39 | 39 |
40 // Fill in the wifi access point info if device is currently connected to a | 40 // 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 | 41 // wifi access point. Return true if device is connected to a wifi access |
42 // point, false otherwise. | 42 // point, false otherwise. |
43 virtual bool GetInfo(WifiAccessPointInfo *info); | 43 virtual bool GetInfo(WifiAccessPointInfo *info); |
44 | 44 |
45 private: | 45 private: |
46 DISALLOW_COPY_AND_ASSIGN(WifiAccessPointInfoProvider); | 46 DISALLOW_COPY_AND_ASSIGN(WifiAccessPointInfoProvider); |
47 }; | 47 }; |
48 | 48 |
49 #endif // CHROME_BROWSER_METRICS_WIFI_ACCESS_POINT_INFO_PROVIDER_H_ | 49 #endif // COMPONENTS_METRICS_NET_WIFI_ACCESS_POINT_INFO_PROVIDER_H_ |
OLD | NEW |