| Index: Source/modules/serviceworkers/WaitUntilObserver.h
|
| diff --git a/Source/modules/serviceworkers/WaitUntilObserver.h b/Source/modules/serviceworkers/WaitUntilObserver.h
|
| index c5f537a7215ddfed8fea894dca9f8eb22a2a4cb4..1a139aaa08e0fdfae5e029f5b334609b4a4e4a89 100644
|
| --- a/Source/modules/serviceworkers/WaitUntilObserver.h
|
| +++ b/Source/modules/serviceworkers/WaitUntilObserver.h
|
| @@ -6,6 +6,7 @@
|
| #define WaitUntilObserver_h
|
|
|
| #include "core/dom/ContextLifecycleObserver.h"
|
| +#include "heap/Handle.h"
|
| #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h"
|
| #include "wtf/Forward.h"
|
| #include "wtf/RefCounted.h"
|
| @@ -17,10 +18,11 @@ class ScriptValue;
|
|
|
| // Created for each InstallPhaseEvent instance.
|
| class WaitUntilObserver FINAL :
|
| - public ContextLifecycleObserver,
|
| - public RefCounted<WaitUntilObserver> {
|
| + public RefCountedWillBeGarbageCollectedFinalized<WaitUntilObserver>,
|
| + public ContextLifecycleObserver {
|
| + DECLARE_GC_INFO;
|
| public:
|
| - static PassRefPtr<WaitUntilObserver> create(ExecutionContext*, int eventID);
|
| + static PassRefPtrWillBeRawPtr<WaitUntilObserver> create(ExecutionContext*, int eventID);
|
|
|
| ~WaitUntilObserver();
|
|
|
| @@ -32,6 +34,8 @@ public:
|
| // the given promise is resolved or rejected.
|
| void waitUntil(const ScriptValue&);
|
|
|
| + void trace(Visitor*) { }
|
| +
|
| private:
|
| class ThenFunction;
|
|
|
|
|