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

Unified Diff: content/public/browser/geolocation_provider.h

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/public/browser/geolocation_provider.h
diff --git a/content/public/browser/geolocation_provider.h b/content/public/browser/geolocation_provider.h
index 5e27db48880a4fdd73201a633a3d151edbee7b84..edd2003d94df2fffd052dd0414b9c19cf21868dc 100644
--- a/content/public/browser/geolocation_provider.h
+++ b/content/public/browser/geolocation_provider.h
@@ -55,6 +55,15 @@ class CONTENT_EXPORT GeolocationProvider {
const Geoposition& position,
const base::Closure& completion_callback);
+ // Pauses (or resume any currently paused) location update callbacks.
+ // No-op if there are no active location callbacks. Note that this will
+ // pause (or resume) ALL callbacks for ALL providers. Embderred may like
+ // to use this to pause updates if a device was to go to a temporary
+ // low power mode.
+ virtual void PauseAllLocationUpdateCallbacks() = 0;
+ virtual void ResumeAllLocationUpdateCallbacks() = 0;
+
+
protected:
virtual~GeolocationProvider() {}
};

Powered by Google App Engine
This is Rietveld 408576698