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

Unified Diff: content/renderer/geolocation_dispatcher.cc

Issue 65273002: Add a mechanism to pause and resume geolocation requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Wire up onPause/onResume Created 7 years, 1 month 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: content/renderer/geolocation_dispatcher.cc
diff --git a/content/renderer/geolocation_dispatcher.cc b/content/renderer/geolocation_dispatcher.cc
index 031376c731879528127767296414efefbcb29693..59591839ce4330a4ebc17f66ce0499c1676731fc 100644
--- a/content/renderer/geolocation_dispatcher.cc
+++ b/content/renderer/geolocation_dispatcher.cc
@@ -57,6 +57,10 @@ void GeolocationDispatcher::stopUpdating() {
updating_ = false;
}
+void GeolocationDispatcher::pauseOrResume(bool should_pause) {
+ Send(new GeolocationHostMsg_PauseOrResume(routing_id(), should_pause));
+}
+
void GeolocationDispatcher::setEnableHighAccuracy(bool enable_high_accuracy) {
// GeolocationController calls setEnableHighAccuracy(true) before
// startUpdating in response to the first high-accuracy Geolocation
« content/common/geolocation_messages.h ('K') | « content/renderer/geolocation_dispatcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698