Index: Source/modules/serviceworkers/ServiceWorkerRegistration.h |
diff --git a/Source/modules/serviceworkers/ServiceWorkerRegistration.h b/Source/modules/serviceworkers/ServiceWorkerRegistration.h |
index 95bc48293d3982ea14dc7eee0dc1bd1f73b73456..56a7badfaa9f8cbe2928fb33c7c3e29813182a2a 100644 |
--- a/Source/modules/serviceworkers/ServiceWorkerRegistration.h |
+++ b/Source/modules/serviceworkers/ServiceWorkerRegistration.h |
@@ -8,6 +8,7 @@ |
#include "core/dom/ActiveDOMObject.h" |
#include "core/events/EventTarget.h" |
#include "modules/serviceworkers/ServiceWorker.h" |
+#include "platform/Supplementable.h" |
#include "public/platform/WebServiceWorkerRegistration.h" |
#include "public/platform/WebServiceWorkerRegistrationProxy.h" |
#include "wtf/OwnPtr.h" |
@@ -26,7 +27,8 @@ class ServiceWorkerRegistration FINAL |
: public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<ServiceWorkerRegistration> |
, public ActiveDOMObject |
, public EventTargetWithInlineData |
- , public WebServiceWorkerRegistrationProxy { |
+ , public WebServiceWorkerRegistrationProxy |
+ , public HeapSupplementable<ServiceWorkerRegistration> { |
michaeln
2014/10/12 23:51:02
Can you briefly explain what this voodoo means and
Marijn Kruisselbrink
2014/10/13 19:09:59
Yes. For other modules to be able to extend Servic
|
DEFINE_WRAPPERTYPEINFO(); |
DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<ServiceWorkerRegistration>); |
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ServiceWorkerRegistration); |
@@ -53,6 +55,8 @@ public: |
String scope() const; |
+ WebServiceWorkerRegistration* webRegistration() { return m_outerRegistration.get(); } |
+ |
ScriptPromise unregister(ScriptState*); |
DEFINE_ATTRIBUTE_EVENT_LISTENER(updatefound); |