Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3212)

Unified Diff: device/geolocation/geolocation_manager.h

Issue 2975683002: Add GeolocationManager service (Closed)
Patch Set: Fix Windows dll-interface problem Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: device/geolocation/geolocation_manager.h
diff --git a/device/geolocation/geolocation_manager.h b/device/geolocation/geolocation_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..bbf9044af185384bb46ebe42d8a6a7ae910c98cb
--- /dev/null
+++ b/device/geolocation/geolocation_manager.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_MANAGER_H_
+#define DEVICE_GEOLOCATION_GEOLOCATION_MANAGER_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_manager.mojom.h"
+#include "mojo/public/cpp/bindings/binding.h"
+
+namespace service_manager {
+struct BindSourceInfo;
+}
+
+namespace device {
+
+// Implements the GeolocationManager Mojo interface.
+class DEVICE_GEOLOCATION_EXPORT GeolocationManager
+ : public NON_EXPORTED_BASE(mojom::GeolocationManager) {
+ public:
+ GeolocationManager();
+ ~GeolocationManager() override;
+
+ static void Create(const service_manager::BindSourceInfo& source_info,
+ mojom::GeolocationManagerRequest request);
+
+ void IsHighAccuracyLocationBeingCaptured(
+ IsHighAccuracyLocationBeingCapturedCallback callback) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(GeolocationManager);
+};
+
+} // namespace device
+
+#endif // DEVICE_GEOLOCATION_GEOLOCATION_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698