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

Side by Side Diff: chrome/browser/metrics/wifi_access_point_info_provider.h

Issue 558873002: Moves NetworkMetricsProvider to //components/metrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed asvitkine comments Created 6 years, 3 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
OLDNEW
(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 #include "base/basictypes.h"
10
11 // Interface for accessing connected wireless access point information.
12 class WifiAccessPointInfoProvider {
13 public:
14 // Wifi access point security mode definitions.
15 enum WifiSecurityMode {
16 WIFI_SECURITY_UNKNOWN = 0,
17 WIFI_SECURITY_WPA = 1,
18 WIFI_SECURITY_WEP = 2,
19 WIFI_SECURITY_RSN = 3,
20 WIFI_SECURITY_802_1X = 4,
21 WIFI_SECURITY_PSK = 5,
22 WIFI_SECURITY_NONE
23 };
24
25 // Information of the currently connected wifi access point.
26 struct WifiAccessPointInfo {
27 WifiAccessPointInfo();
28 ~WifiAccessPointInfo();
29 WifiSecurityMode security;
30 std::string bssid;
31 std::string model_number;
32 std::string model_name;
33 std::string device_name;
34 std::string oui_list;
35 };
36
37 WifiAccessPointInfoProvider();
38 virtual ~WifiAccessPointInfoProvider();
39
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
42 // point, false otherwise.
43 virtual bool GetInfo(WifiAccessPointInfo *info);
44
45 private:
46 DISALLOW_COPY_AND_ASSIGN(WifiAccessPointInfoProvider);
47 };
48
49 #endif // CHROME_BROWSER_METRICS_WIFI_ACCESS_POINT_INFO_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/metrics/network_metrics_provider.cc ('k') | chrome/browser/metrics/wifi_access_point_info_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698