summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/android/GeolocationServiceAndroid.h
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2009-10-28 11:29:58 +0000
committerSteve Block <steveblock@google.com>2009-11-05 06:42:49 +0000
commitb999b2f567121b11fe014341931a72a5a7a6f4b4 (patch)
tree6d8ec5a53c72e138a3379ca2c3b1290c4e6e5be7 /WebCore/platform/android/GeolocationServiceAndroid.h
parent2675a5cf2dfbe6a2b08e57bd2e7594c68e8025a2 (diff)
downloadexternal_webkit-b999b2f567121b11fe014341931a72a5a7a6f4b4.zip
external_webkit-b999b2f567121b11fe014341931a72a5a7a6f4b4.tar.gz
external_webkit-b999b2f567121b11fe014341931a72a5a7a6f4b4.tar.bz2
Stop Geolocation service when browser tab is in the background.
This is a fix for bug http://b/issue?id=2211437 Change-Id: Id44b5b5679a302ecb16d5f493ea900d252faf2dc
Diffstat (limited to 'WebCore/platform/android/GeolocationServiceAndroid.h')
-rw-r--r--WebCore/platform/android/GeolocationServiceAndroid.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/WebCore/platform/android/GeolocationServiceAndroid.h b/WebCore/platform/android/GeolocationServiceAndroid.h
index f233f9a..0eed8d7 100644
--- a/WebCore/platform/android/GeolocationServiceAndroid.h
+++ b/WebCore/platform/android/GeolocationServiceAndroid.h
@@ -51,6 +51,9 @@ namespace WebCore {
virtual Geoposition* lastPosition() const { return m_lastPosition.get(); }
virtual PositionError* lastError() const { return m_lastError.get(); }
+ virtual void suspend();
+ virtual void resume();
+
// Android-specific
void newPositionAvailable(PassRefPtr<Geoposition>);
void newErrorAvailable(PassRefPtr<PositionError>);