WebCore/page/GeolocationController.h
changeset 2 303757a437d3
parent 0 4f2f89ce4247
--- a/WebCore/page/GeolocationController.h	Fri Sep 17 09:02:29 2010 +0300
+++ b/WebCore/page/GeolocationController.h	Mon Oct 04 01:32:07 2010 +0300
@@ -45,7 +45,7 @@
     GeolocationController(Page*, GeolocationControllerClient*);
     ~GeolocationController();
 
-    void addObserver(Geolocation*);
+    void addObserver(Geolocation*, bool enableHighAccuracy);
     void removeObserver(Geolocation*);
 
     void positionChanged(GeolocationPosition*);
@@ -58,7 +58,10 @@
     GeolocationControllerClient* m_client;
 
     RefPtr<GeolocationPosition> m_lastPosition;
-    HashSet<RefPtr<Geolocation> > m_observers;
+    typedef HashSet<RefPtr<Geolocation> > ObserversSet;
+    // All observers; both those requesting high accuracy and those not.
+    ObserversSet m_observers;
+    ObserversSet m_highAccuracyObservers;
 };
 
 } // namespace WebCore