Index: Source/modules/geofencing/ServiceWorkerRegistrationGeofencing.h |
diff --git a/Source/modules/geofencing/ServiceWorkerRegistrationGeofencing.h b/Source/modules/geofencing/ServiceWorkerRegistrationGeofencing.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d2bed6ad086051d1a132acc5f9eed65373c411d4 |
--- /dev/null |
+++ b/Source/modules/geofencing/ServiceWorkerRegistrationGeofencing.h |
@@ -0,0 +1,38 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef ServiceWorkerRegistrationGeofencing_h |
+#define ServiceWorkerRegistrationGeofencing_h |
+ |
+#include "platform/Supplementable.h" |
+#include "platform/heap/Handle.h" |
+ |
+namespace blink { |
+ |
+class Geofencing; |
+class ServiceWorkerRegistration; |
+ |
+class ServiceWorkerRegistrationGeofencing FINAL : public GarbageCollectedFinalized<ServiceWorkerRegistrationGeofencing>, public HeapSupplement<ServiceWorkerRegistration> { |
jsbell
2014/10/08 18:51:57
nit: 'final' now.
Marijn Kruisselbrink
2014/10/08 23:00:32
Done.
|
+ USING_GARBAGE_COLLECTED_MIXIN(ServiceWorkerRegistrationGeofencing); |
+ WTF_MAKE_NONCOPYABLE(ServiceWorkerRegistrationGeofencing); |
+public: |
+ virtual ~ServiceWorkerRegistrationGeofencing(); |
+ static ServiceWorkerRegistrationGeofencing& from(ServiceWorkerRegistration&); |
+ |
+ static Geofencing* geofencing(ServiceWorkerRegistration&); |
+ Geofencing* geofencing(); |
+ |
+ virtual void trace(Visitor*) OVERRIDE; |
jsbell
2014/10/08 18:51:57
nit: 'override' now.
Marijn Kruisselbrink
2014/10/08 23:00:32
Done.
|
+ |
+private: |
+ ServiceWorkerRegistrationGeofencing(ServiceWorkerRegistration*); |
+ static const char* supplementName(); |
+ |
+ Member<ServiceWorkerRegistration> m_registration; |
+ Member<Geofencing> m_geofencing; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // ServiceWorkerRegistrationGeofencing_h |