Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / geofencing / Geofencing.h
index 9d6bf41..21782a9 100644 (file)
 
 namespace blink {
 
-class ExecutionContext;
 class GeofencingRegion;
 class ScriptPromise;
 class ScriptState;
+class ServiceWorkerRegistration;
 
-class Geofencing FINAL : public GarbageCollected<Geofencing>, public ScriptWrappable {
+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