wifi_data_provider_linux.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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_LINUX_H_
  5. #define SERVICES_DEVICE_GEOLOCATION_WIFI_DATA_PROVIDER_LINUX_H_
  6. #include <memory>
  7. #include "services/device/geolocation/wifi_data_provider_common.h"
  8. namespace dbus {
  9. class Bus;
  10. }
  11. namespace device {
  12. class WifiDataProviderLinux : public WifiDataProviderCommon {
  13. public:
  14. WifiDataProviderLinux();
  15. WifiDataProviderLinux(const WifiDataProviderLinux&) = delete;
  16. WifiDataProviderLinux& operator=(const WifiDataProviderLinux&) = delete;
  17. private:
  18. friend class GeolocationWifiDataProviderLinuxTest;
  19. ~WifiDataProviderLinux() override;
  20. // WifiDataProviderCommon implementation
  21. std::unique_ptr<WlanApiInterface> CreateWlanApi() override;
  22. std::unique_ptr<WifiPollingPolicy> CreatePollingPolicy() override;
  23. std::unique_ptr<WlanApiInterface> CreateWlanApiForTesting(
  24. scoped_refptr<dbus::Bus> bus);
  25. };
  26. } // namespace device
  27. #endif // SERVICES_DEVICE_GEOLOCATION_WIFI_DATA_PROVIDER_LINUX_H_