Index: Source/modules/geofencing/Geofencing.h |
diff --git a/Source/modules/geofencing/Geofencing.h b/Source/modules/geofencing/Geofencing.h |
index 9d6bf412949c0be3314a638872597a275c4e0ae0..3c2e9c5ea06cc7644f3ae5aee804bd2b83eb357c 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(); |
+ Geofencing(ServiceWorkerRegistration*); |
+ |
+ Member<ServiceWorkerRegistration> m_registration; |
}; |
} // namespace blink |