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

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

Issue 328793002: Add wifi AP info to system profile metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
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_
OLDNEW
« no previous file with comments | « chrome/browser/metrics/network_metrics_provider.cc ('k') | chrome/browser/metrics/wifi_access_point_info_provider_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698