geolocation_config.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. // Copyright 2017 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_GEOLOCATION_CONFIG_H_
  5. #define SERVICES_DEVICE_GEOLOCATION_GEOLOCATION_CONFIG_H_
  6. #include "base/compiler_specific.h"
  7. #include "mojo/public/cpp/bindings/pending_receiver.h"
  8. #include "services/device/geolocation/geolocation_provider_impl.h"
  9. #include "services/device/public/mojom/geolocation_config.mojom.h"
  10. namespace device {
  11. // Implements the GeolocationConfig Mojo interface.
  12. class GeolocationConfig : public mojom::GeolocationConfig {
  13. public:
  14. GeolocationConfig();
  15. GeolocationConfig(const GeolocationConfig&) = delete;
  16. GeolocationConfig& operator=(const GeolocationConfig&) = delete;
  17. ~GeolocationConfig() override;
  18. static void Create(mojo::PendingReceiver<mojom::GeolocationConfig> receiver);
  19. void IsHighAccuracyLocationBeingCaptured(
  20. IsHighAccuracyLocationBeingCapturedCallback callback) override;
  21. };
  22. } // namespace device
  23. #endif // SERVICES_DEVICE_GEOLOCATION_GEOLOCATION_CONFIG_H_