Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1603)

Unified Diff: Source/modules/geofencing/Geofencing.h

Issue 623813002: Blink side of exposing the service worker registration associated with geofencing API calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: address comments Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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*);
Michael van Ouwerkerk 2014/10/09 10:56:27 explicit
Marijn Kruisselbrink 2014/10/09 18:10:54 Done.
+
+ Member<ServiceWorkerRegistration> m_registration;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698