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

Unified Diff: net/base/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: net/base/wifi_access_point_info_provider.h
diff --git a/net/base/wifi_access_point_info_provider.h b/net/base/wifi_access_point_info_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..4f701dc591a784e1a9c2891fec7f9acffdaf7a65
--- /dev/null
+++ b/net/base/wifi_access_point_info_provider.h
@@ -0,0 +1,30 @@
+// 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 NET_BASE_WIFI_ACCESS_POINT_INFO_PROVIDER_H_
+#define NET_BASE_WIFI_ACCESS_POINT_INFO_PROVIDER_H_
+
+#include "net/base/net_export.h"
+#include "net/base/net_util.h"
+
+namespace net {
+
+// Interface for accessing connected wireless access point information.
+class NET_EXPORT 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(net::WifiAccessPointInfo *info) = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(WifiAccessPointInfoProvider);
+};
+
+} // namespace net
+
+#endif // NET_BASE_WIFI_ACCESS_POINT_INFO_PROVIDER_H_

Powered by Google App Engine
This is Rietveld 408576698