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

Unified Diff: content/browser/geolocation/wifi_data_provider_mac.h

Issue 2188933002: Revert of Reland: Geolocation: move from content/browser to device/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: content/browser/geolocation/wifi_data_provider_mac.h
diff --git a/content/browser/geolocation/wifi_data_provider_mac.h b/content/browser/geolocation/wifi_data_provider_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..920c139e07834609b467b7011fca05da07177d1b
--- /dev/null
+++ b/content/browser/geolocation/wifi_data_provider_mac.h
@@ -0,0 +1,36 @@
+// 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_MAC_H_
+#define CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_MAC_H_
+
+#include "base/macros.h"
+#include "content/browser/geolocation/wifi_data_provider_common.h"
+
+namespace content {
+
+// Implementation of the wifi data provider for Mac OSX. Uses different API
+// bindings depending on APIs detected available at runtime in order to access
+// wifi scan data: Apple80211.h on OSX 10.5, CoreWLAN framework on OSX 10.6.
+class WifiDataProviderMac : public WifiDataProviderCommon {
+ public:
+ WifiDataProviderMac();
+
+ private:
+ ~WifiDataProviderMac() override;
+
+ // WifiDataProviderCommon
+ WlanApiInterface* NewWlanApi() override;
+ WifiPollingPolicy* NewPollingPolicy() override;
+
+ DISALLOW_COPY_AND_ASSIGN(WifiDataProviderMac);
+};
+
+// Creates and returns a new API binding for the CoreWLAN API, or NULL if the
+// API can not be initialized.
+WifiDataProviderCommon::WlanApiInterface* NewCoreWlanApi();
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_MAC_H_

Powered by Google App Engine
This is Rietveld 408576698