Index: device/geolocation/geolocation_config.h |
diff --git a/device/geolocation/geolocation_config.h b/device/geolocation/geolocation_config.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9aafb4dae7bffecde1800ee69ffc36b9b1fb0492 |
--- /dev/null |
+++ b/device/geolocation/geolocation_config.h |
@@ -0,0 +1,39 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef DEVICE_GEOLOCATION_GEOLOCATION_CONFIG_H_ |
+#define DEVICE_GEOLOCATION_GEOLOCATION_CONFIG_H_ |
+ |
+#include "base/compiler_specific.h" |
+#include "device/geolocation/geolocation_export.h" |
+#include "device/geolocation/geolocation_provider_impl.h" |
+#include "device/geolocation/public/interfaces/geolocation_config.mojom.h" |
+#include "mojo/public/cpp/bindings/binding.h" |
+ |
+namespace service_manager { |
+struct BindSourceInfo; |
+} |
+ |
+namespace device { |
+ |
+// Implements the GeolocationConfig Mojo interface. |
+class DEVICE_GEOLOCATION_EXPORT GeolocationConfig |
+ : public NON_EXPORTED_BASE(mojom::GeolocationConfig) { |
+ public: |
+ GeolocationConfig(); |
+ ~GeolocationConfig() override; |
+ |
+ static void Create(const service_manager::BindSourceInfo& source_info, |
+ mojom::GeolocationConfigRequest request); |
+ |
+ void IsHighAccuracyLocationBeingCaptured( |
+ IsHighAccuracyLocationBeingCapturedCallback callback) override; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(GeolocationConfig); |
+}; |
+ |
+} // namespace device |
+ |
+#endif // DEVICE_GEOLOCATION_GEOLOCATION_CONFIG_H_ |