[email protected] | f786717 | 2012-07-11 07:04:07 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 4048ddb | 2010-01-28 12:24:24 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | 87678d99 | 2011-02-28 17:33:30 | [diff] [blame] | 5 | #ifndef CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_MAC_H_ |
6 | #define CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_MAC_H_ | ||||
[email protected] | 4048ddb | 2010-01-28 12:24:24 | [diff] [blame] | 7 | |
[email protected] | 87678d99 | 2011-02-28 17:33:30 | [diff] [blame] | 8 | #include "content/browser/geolocation/wifi_data_provider_common.h" |
[email protected] | 4048ddb | 2010-01-28 12:24:24 | [diff] [blame] | 9 | |
[email protected] | 6bd4083 | 2012-10-29 03:01:49 | [diff] [blame] | 10 | namespace content { |
11 | |||||
[email protected] | 5eaf627 | 2010-03-08 11:11:24 | [diff] [blame] | 12 | // 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] | 458e22e | 2014-08-18 19:17:53 | [diff] [blame] | 15 | class WifiDataProviderMac : public WifiDataProviderCommon { |
[email protected] | 4048ddb | 2010-01-28 12:24:24 | [diff] [blame] | 16 | public: |
[email protected] | 458e22e | 2014-08-18 19:17:53 | [diff] [blame] | 17 | WifiDataProviderMac(); |
[email protected] | 4048ddb | 2010-01-28 12:24:24 | [diff] [blame] | 18 | |
19 | private: | ||||
[email protected] | 458e22e | 2014-08-18 19:17:53 | [diff] [blame] | 20 | virtual ~WifiDataProviderMac(); |
[email protected] | 4048ddb | 2010-01-28 12:24:24 | [diff] [blame] | 21 | |
[email protected] | 41b5abb | 2010-02-25 10:15:23 | [diff] [blame] | 22 | // WifiDataProviderCommon |
[email protected] | edc64de | 2011-11-17 20:07:38 | [diff] [blame] | 23 | virtual WlanApiInterface* NewWlanApi() OVERRIDE; |
[email protected] | bebd8e7 | 2013-09-09 19:07:49 | [diff] [blame] | 24 | virtual WifiPollingPolicy* NewPollingPolicy() OVERRIDE; |
[email protected] | 4048ddb | 2010-01-28 12:24:24 | [diff] [blame] | 25 | |
[email protected] | 458e22e | 2014-08-18 19:17:53 | [diff] [blame] | 26 | DISALLOW_COPY_AND_ASSIGN(WifiDataProviderMac); |
[email protected] | 4048ddb | 2010-01-28 12:24:24 | [diff] [blame] | 27 | }; |
28 | |||||
[email protected] | 5eaf627 | 2010-03-08 11:11:24 | [diff] [blame] | 29 | // Creates and returns a new API binding for the CoreWLAN API, or NULL if the |
30 | // API can not be initialized. | ||||
31 | WifiDataProviderCommon::WlanApiInterface* NewCoreWlanApi(); | ||||
32 | |||||
[email protected] | 6bd4083 | 2012-10-29 03:01:49 | [diff] [blame] | 33 | } // namespace content |
34 | |||||
[email protected] | 87678d99 | 2011-02-28 17:33:30 | [diff] [blame] | 35 | #endif // CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_MAC_H_ |