Index: Source/modules/geolocation/GeolocationInspectorAgent.h |
diff --git a/Source/modules/geolocation/GeolocationInspectorAgent.h b/Source/modules/geolocation/GeolocationInspectorAgent.h |
index 906ae6ff3edae9ce94bffcd88f5c2f1a60695b27..466e0311369143f5b3d6a681ab29cb854b04179f 100644 |
--- a/Source/modules/geolocation/GeolocationInspectorAgent.h |
+++ b/Source/modules/geolocation/GeolocationInspectorAgent.h |
@@ -34,7 +34,7 @@ |
#include "core/inspector/InspectorBaseAgent.h" |
#include "modules/geolocation/GeolocationPosition.h" |
-#include "wtf/HashMap.h" |
+#include "wtf/HashSet.h" |
#include "wtf/text/WTFString.h" |
namespace WebCore { |
@@ -46,7 +46,7 @@ typedef String ErrorString; |
class GeolocationInspectorAgent FINAL : public InspectorBaseAgent<GeolocationInspectorAgent>, public InspectorBackendDispatcher::GeolocationCommandHandler { |
WTF_MAKE_NONCOPYABLE(GeolocationInspectorAgent); |
public: |
- static PassOwnPtr<GeolocationInspectorAgent> create(GeolocationController*); |
+ static PassOwnPtr<GeolocationInspectorAgent> create(); |
virtual ~GeolocationInspectorAgent(); |
// Protocol methods. |
@@ -56,9 +56,12 @@ public: |
// Instrumentation method. |
GeolocationPosition* overrideGeolocationPosition(GeolocationPosition*); |
+ void AddController(GeolocationController*); |
+ void RemoveController(GeolocationController*); |
+ |
private: |
- explicit GeolocationInspectorAgent(GeolocationController*); |
- GeolocationController* m_controller; |
+ GeolocationInspectorAgent(); |
+ WTF::HashSet<GeolocationController*> m_controllers; |
bool m_geolocationOverridden; |
RefPtrWillBePersistent<GeolocationPosition> m_geolocationPosition; |
RefPtrWillBePersistent<GeolocationPosition> m_platformGeolocationPosition; |