Index: Source/modules/geofencing/Geofencing.h |
diff --git a/Source/modules/geofencing/Geofencing.h b/Source/modules/geofencing/Geofencing.h |
index 9d6bf412949c0be3314a638872597a275c4e0ae0..76d73adfc4df6896e29c3e6f0477a81152d14191 100644 |
--- a/Source/modules/geofencing/Geofencing.h |
+++ b/Source/modules/geofencing/Geofencing.h |
@@ -15,23 +15,26 @@ class ExecutionContext; |
class GeofencingRegion; |
class ScriptPromise; |
class ScriptState; |
+class ServiceWorkerRegistration; |
class Geofencing FINAL : public GarbageCollected<Geofencing>, public ScriptWrappable { |
DEFINE_WRAPPERTYPEINFO(); |
public: |
- static Geofencing* create() |
+ static Geofencing* create(ServiceWorkerRegistration* registration) |
{ |
- return new Geofencing(); |
+ return new Geofencing(registration); |
} |
ScriptPromise registerRegion(ScriptState*, GeofencingRegion*); |
ScriptPromise unregisterRegion(ScriptState*, const String& regionId); |
ScriptPromise getRegisteredRegions(ScriptState*) const; |
- virtual void trace(Visitor*) { } |
+ virtual void trace(Visitor*); |
private: |
- Geofencing(); |
+ explicit Geofencing(ServiceWorkerRegistration*); |
+ |
+ Member<ServiceWorkerRegistration> m_registration; |
}; |
} // namespace blink |