Index: content/browser/renderer_host/render_view_host_impl.cc |
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc |
index 8d36fd2c76d982582636a78efca1b1921435d967..b6d3fda6b4029a7a75c7eb80ec92132d9c9aa05e 100644 |
--- a/content/browser/renderer_host/render_view_host_impl.cc |
+++ b/content/browser/renderer_host/render_view_host_impl.cc |
@@ -832,6 +832,26 @@ void RenderViewHostImpl::DisableFullscreenEncryptedMediaPlayback() { |
} |
#endif |
+void RenderViewHostImpl::PauseGeolocation() { |
+ BrowserThread::PostTask( |
+ BrowserThread::IO, FROM_HERE, |
+ base::Bind(&GeolocationDispatcherHost::PauseOrResume, |
+ base::Unretained( |
+ static_cast<RenderProcessHostImpl*>(GetProcess())-> |
+ geolocation_dispatcher_host()), |
+ GetRoutingID(), true)); |
+} |
+ |
+void RenderViewHostImpl::ResumeGeolocation() { |
+ BrowserThread::PostTask( |
+ BrowserThread::IO, FROM_HERE, |
+ base::Bind(&GeolocationDispatcherHost::PauseOrResume, |
+ base::Unretained( |
joth
2013/11/08 20:41:14
GeolocationDispatcherHost is refcounted so the Unr
benm (inactive)
2013/11/08 21:10:28
Perfect, thanks.
|
+ static_cast<RenderProcessHostImpl*>(GetProcess())-> |
+ geolocation_dispatcher_host()), |
+ GetRoutingID(), false)); |
+} |
+ |
void RenderViewHostImpl::DragTargetDragEnter( |
const DropData& drop_data, |
const gfx::Point& client_pt, |