| 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..bfc38b478fdf06154e81b23666ee5da03bc57c94 100644
|
| --- a/content/browser/geolocation/geolocation_dispatcher_host.h
|
| +++ b/content/browser/geolocation/geolocation_dispatcher_host.h
|
| @@ -19,6 +19,17 @@ 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;
|
| +
|
| + // Returns true if there are any non-paused geolocation callbacks
|
| + // currently registered. Should only be called on the IO thread.
|
| + virtual bool IsGeolocationActive() = 0;
|
| +
|
| protected:
|
| GeolocationDispatcherHost();
|
| virtual ~GeolocationDispatcherHost();
|
|
|