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

Side by Side Diff: components/metrics/net/wifi_access_point_info_provider.h

Issue 636363004: Make remaining parts of components/metrics use metrics namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix cros compile Created 6 years, 1 month 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 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
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_
OLDNEW
« no previous file with comments | « components/metrics/net/network_metrics_provider.cc ('k') | components/metrics/net/wifi_access_point_info_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698