Index: content/browser/geolocation/wifi_data_provider_common_win.h |
diff --git a/content/browser/geolocation/wifi_data_provider_common_win.h b/content/browser/geolocation/wifi_data_provider_common_win.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..24973a57feb266d3f1d35ca2381c1f142ba5c2fa |
--- /dev/null |
+++ b/content/browser/geolocation/wifi_data_provider_common_win.h |
@@ -0,0 +1,24 @@ |
+// Copyright (c) 2012 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 CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_COMMON_WIN_H_ |
+#define CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_COMMON_WIN_H_ |
+ |
+#include <windows.h> |
+#include <ntddndis.h> |
+ |
+#include "content/browser/geolocation/wifi_data_provider.h" |
+ |
+namespace content { |
+ |
+// Extracts access point data from the NDIS_802_11_BSSID_LIST structure and |
+// appends it to the data vector. Returns the number of access points for which |
+// data was extracted. |
+int GetDataFromBssIdList(const NDIS_802_11_BSSID_LIST& bss_id_list, |
+ int list_size, |
+ WifiData::AccessPointDataSet* data); |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_COMMON_WIN_H_ |