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

Unified Diff: content/browser/geolocation/geolocation_dispatcher_host.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: Created 7 years 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/browser/geolocation/geolocation_dispatcher_host.h
diff --git a/content/browser/geolocation/geolocation_dispatcher_host.h b/content/browser/geolocation/geolocation_dispatcher_host.h
index 0631c8718f228f9fdf691218bbff6cbd9e39d999..5620e262f8b9512feac28ab90c9e0b846589d1e0 100644
--- a/content/browser/geolocation/geolocation_dispatcher_host.h
+++ b/content/browser/geolocation/geolocation_dispatcher_host.h
@@ -19,6 +19,13 @@ class GeolocationDispatcherHost : public BrowserMessageFilter {
int render_process_id,
GeolocationPermissionContext* geolocation_permission_context);
+ // Pause or resumes geolocation for the given |render_view_id|. Should
+ // be called on the IO thread. Resuming when nothing is paused is a no-op.
+ // If a renderer is paused while not currently using geolocation but
+ // then goes on to do so before being resumed, then that renderer will
+ // not get geolocation updates until it is resumed.
+ virtual void PauseOrResume(int render_view_id, bool should_pause) = 0;
+
protected:
GeolocationDispatcherHost();
virtual ~GeolocationDispatcherHost();
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/geolocation/geolocation_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698