wifi_data_provider_mac.h 993 B

123456789101112131415161718192021222324252627282930
  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef SERVICES_DEVICE_GEOLOCATION_WIFI_DATA_PROVIDER_MAC_H_
  5. #define SERVICES_DEVICE_GEOLOCATION_WIFI_DATA_PROVIDER_MAC_H_
  6. #include "services/device/geolocation/wifi_data_provider_common.h"
  7. namespace device {
  8. // Implementation of the wifi data provider for macOS using CoreWLAN.
  9. class WifiDataProviderMac : public WifiDataProviderCommon {
  10. public:
  11. WifiDataProviderMac();
  12. WifiDataProviderMac(const WifiDataProviderMac&) = delete;
  13. WifiDataProviderMac& operator=(const WifiDataProviderMac&) = delete;
  14. private:
  15. ~WifiDataProviderMac() override;
  16. // WifiDataProviderCommon implementation
  17. std::unique_ptr<WlanApiInterface> CreateWlanApi() override;
  18. std::unique_ptr<WifiPollingPolicy> CreatePollingPolicy() override;
  19. };
  20. } // namespace device
  21. #endif // SERVICES_DEVICE_GEOLOCATION_WIFI_DATA_PROVIDER_MAC_H_