blob: e99164899e7ea7bfacb0d8cc30d7beae273af804 [file] [log] [blame]
[email protected]f7867172012-07-11 07:04:071// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]4048ddb2010-01-28 12:24:242// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]87678d992011-02-28 17:33:305#ifndef CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_MAC_H_
6#define CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_MAC_H_
[email protected]4048ddb2010-01-28 12:24:247
[email protected]87678d992011-02-28 17:33:308#include "content/browser/geolocation/wifi_data_provider_common.h"
[email protected]4048ddb2010-01-28 12:24:249
[email protected]6bd40832012-10-29 03:01:4910namespace content {
11
[email protected]5eaf6272010-03-08 11:11:2412// Implementation of the wifi data provider for Mac OSX. Uses different API
13// bindings depending on APIs detected available at runtime in order to access
14// wifi scan data: Apple80211.h on OSX 10.5, CoreWLAN framework on OSX 10.6.
[email protected]458e22e2014-08-18 19:17:5315class WifiDataProviderMac : public WifiDataProviderCommon {
[email protected]4048ddb2010-01-28 12:24:2416 public:
[email protected]458e22e2014-08-18 19:17:5317 WifiDataProviderMac();
[email protected]4048ddb2010-01-28 12:24:2418
19 private:
[email protected]458e22e2014-08-18 19:17:5320 virtual ~WifiDataProviderMac();
[email protected]4048ddb2010-01-28 12:24:2421
[email protected]41b5abb2010-02-25 10:15:2322 // WifiDataProviderCommon
[email protected]edc64de2011-11-17 20:07:3823 virtual WlanApiInterface* NewWlanApi() OVERRIDE;
[email protected]bebd8e72013-09-09 19:07:4924 virtual WifiPollingPolicy* NewPollingPolicy() OVERRIDE;
[email protected]4048ddb2010-01-28 12:24:2425
[email protected]458e22e2014-08-18 19:17:5326 DISALLOW_COPY_AND_ASSIGN(WifiDataProviderMac);
[email protected]4048ddb2010-01-28 12:24:2427};
28
[email protected]5eaf6272010-03-08 11:11:2429// Creates and returns a new API binding for the CoreWLAN API, or NULL if the
30// API can not be initialized.
31WifiDataProviderCommon::WlanApiInterface* NewCoreWlanApi();
32
[email protected]6bd40832012-10-29 03:01:4933} // namespace content
34
[email protected]87678d992011-02-28 17:33:3035#endif // CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_MAC_H_