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

Unified Diff: content/common/geolocation_messages.h

Issue 680323002: Revert of Partially convert geolocation IPC to Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/OWNERS ('k') | content/common/geolocation_service.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/geolocation_messages.h
diff --git a/content/common/geolocation_messages.h b/content/common/geolocation_messages.h
index b66a1919b7986c8f6feb9f70b32628f2d97bb109..f89424ceccc7e67caa5cb1d8917d5adc032a9ec5 100644
--- a/content/common/geolocation_messages.h
+++ b/content/common/geolocation_messages.h
@@ -34,6 +34,12 @@
int /* bridge_id */,
bool /* is_allowed */)
+// Sent after GeolocationHostMsg_StartUpdating iff the user has granted
+// permission and we have a position available or an error occurs (such as
+// permission denied, position unavailable, etc.)
+IPC_MESSAGE_ROUTED1(GeolocationMsg_PositionUpdated,
+ content::Geoposition /* geoposition */)
+
// Messages sent from the renderer to the browser.
// The |bridge_id| representing |host| is requesting permission to access
@@ -44,3 +50,16 @@
int /* bridge_id */,
GURL /* origin in the frame requesting geolocation */,
bool /* user_gesture */)
+
+// The render view requests the Geolocation service to start updating.
+// This is an asynchronous call, and the browser process may eventually reply
+// with the updated geoposition, or an error (access denied, location
+// unavailable, etc.)
+IPC_MESSAGE_ROUTED2(GeolocationHostMsg_StartUpdating,
+ GURL /* origin in the frame requesting geolocation */,
+ bool /* enable_high_accuracy */)
+
+// The render view requests Geolocation service to stop updating.
+// Note that the geolocation service may continue to fetch geolocation data
+// for other origins.
+IPC_MESSAGE_ROUTED0(GeolocationHostMsg_StopUpdating)
« no previous file with comments | « content/common/OWNERS ('k') | content/common/geolocation_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698