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

Unified 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, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/metrics/wifi_access_point_info_provider.h
diff --git a/chrome/browser/metrics/wifi_access_point_info_provider.h b/chrome/browser/metrics/wifi_access_point_info_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..986aa535068cc3aea8d6ce8ee1002cfe2f0b0232
--- /dev/null
+++ b/chrome/browser/metrics/wifi_access_point_info_provider.h
@@ -0,0 +1,45 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_METRICS_WIFI_ACCESS_POINT_INFO_PROVIDER_H_
+#define CHROME_BROWSER_METRICS_WIFI_ACCESS_POINT_INFO_PROVIDER_H_
+
+#include <string>
+
+// Wifi access point security mode definitions.
+enum WifiSecurityMode {
stevenjb 2014/07/29 17:17:52 We should either make these part of WifiAccessPoin
+ WIFI_SECURITY_UNKNOWN = 0,
+ WIFI_SECURITY_WPA = 1,
+ WIFI_SECURITY_WEP = 2,
+ WIFI_SECURITY_RSN = 3,
+ WIFI_SECURITY_802_1X = 4,
+ WIFI_SECURITY_PSK = 5,
+ WIFI_SECURITY_NONE
+};
+
+// Information of the currently connected wifi access point.
+struct WifiAccessPointInfo {
+ WifiAccessPointInfo() {}
+ ~WifiAccessPointInfo() {}
+ WifiSecurityMode security;
+ std::string bssid;
+ std::string model_number;
+ std::string model_name;
+ std::string device_name;
+ std::string oui_list;
+};
+
+// Interface for accessing connected wireless access point information.
+class WifiAccessPointInfoProvider {
+ public:
+ WifiAccessPointInfoProvider() {}
+ virtual ~WifiAccessPointInfoProvider() {}
+
+ // Fill in the wifi access point info if device is currently connected to a
+ // wifi access point. Return true if device is connected to a wifi access
+ // point, false otherwise.
+ virtual bool GetInfo(WifiAccessPointInfo *info) = 0;
+};
+
+#endif // CHROME_BROWSER_METRICS_WIFI_ACCESS_POINT_INFO_PROVIDER_H_
« 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