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

Unified Diff: content/common/geolocation_service.mojom

Issue 628773003: Partially convert geolocation IPC to Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 2 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
« no previous file with comments | « content/common/geolocation_messages.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/geolocation_service.mojom
diff --git a/content/common/geolocation_service.mojom b/content/common/geolocation_service.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..bde7e0f8e780888a817c31581a6452d7575246c2
--- /dev/null
+++ b/content/common/geolocation_service.mojom
@@ -0,0 +1,21 @@
+// Copyright 2014 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.
+
+import "content/public/common/mojo_geoposition.mojom"
+
+module content {
+
+// The Geolocation service provides updates on the device's location to its
+// client. By default, it provides updates with low accuracy, but
+// |SetHighAccuracy()| can be called to change this.
+[Client=GeolocationServiceClient]
+interface GeolocationService {
+ SetHighAccuracy(bool high_accuracy);
+};
+
+interface GeolocationServiceClient {
+ OnLocationUpdate(MojoGeoposition geoposition);
+};
+
+}
« no previous file with comments | « content/common/geolocation_messages.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698