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

Unified Diff: content/port/browser/location_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/port/browser/location_provider.h
diff --git a/content/port/browser/location_provider.h b/content/port/browser/location_provider.h
index 0dc61ef05a2c1a1b801f2ebf2cee54e263897767..c8704d0df0268d89d4b6a08841b80a7481993777 100644
--- a/content/port/browser/location_provider.h
+++ b/content/port/browser/location_provider.h
@@ -39,6 +39,12 @@ class LocationProvider {
// network requests can be done until OnPermissionGranted() has been called.
virtual void StopProvider() = 0;
+ // The LocationProvider implementation may use the Pause/ResumeProvider API
+ // to temporarily stop this provider from firing updates. By default, these
+ // APIs are a no-op.
+ virtual void PauseProvider() = 0;
+ virtual void ResumeProvider() = 0;
+
// Gets the current best position estimate.
virtual void GetPosition(Geoposition* position) = 0;

Powered by Google App Engine
This is Rietveld 408576698