OLD | NEW |
(Empty) | |
| 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 |
| 5 #ifndef DEVICE_GEOLOCATION_GEOLOCATION_CONFIG_H_ |
| 6 #define DEVICE_GEOLOCATION_GEOLOCATION_CONFIG_H_ |
| 7 |
| 8 #include "base/compiler_specific.h" |
| 9 #include "device/geolocation/geolocation_export.h" |
| 10 #include "device/geolocation/geolocation_provider_impl.h" |
| 11 #include "device/geolocation/public/interfaces/geolocation_config.mojom.h" |
| 12 #include "mojo/public/cpp/bindings/binding.h" |
| 13 |
| 14 namespace service_manager { |
| 15 struct BindSourceInfo; |
| 16 } |
| 17 |
| 18 namespace device { |
| 19 |
| 20 // Implements the GeolocationConfig Mojo interface. |
| 21 class DEVICE_GEOLOCATION_EXPORT GeolocationConfig |
| 22 : public NON_EXPORTED_BASE(mojom::GeolocationConfig) { |
| 23 public: |
| 24 GeolocationConfig(); |
| 25 ~GeolocationConfig() override; |
| 26 |
| 27 static void Create(const service_manager::BindSourceInfo& source_info, |
| 28 mojom::GeolocationConfigRequest request); |
| 29 |
| 30 void IsHighAccuracyLocationBeingCaptured( |
| 31 IsHighAccuracyLocationBeingCapturedCallback callback) override; |
| 32 |
| 33 private: |
| 34 DISALLOW_COPY_AND_ASSIGN(GeolocationConfig); |
| 35 }; |
| 36 |
| 37 } // namespace device |
| 38 |
| 39 #endif // DEVICE_GEOLOCATION_GEOLOCATION_CONFIG_H_ |
OLD | NEW |