| Index: third_party/WebKit/Source/core/workers/Worklet.h
|
| diff --git a/third_party/WebKit/Source/core/workers/Worklet.h b/third_party/WebKit/Source/core/workers/Worklet.h
|
| index 1efcf0be2978bfec355b1c88211e8e7f733f2e0f..0e1736399ea09d635cb273295ad2f4d03cbfeace 100644
|
| --- a/third_party/WebKit/Source/core/workers/Worklet.h
|
| +++ b/third_party/WebKit/Source/core/workers/Worklet.h
|
| @@ -8,7 +8,7 @@
|
| #include "bindings/core/v8/ScriptPromise.h"
|
| #include "bindings/core/v8/ScriptWrappable.h"
|
| #include "core/CoreExport.h"
|
| -#include "core/dom/SuspendableObject.h"
|
| +#include "core/dom/ContextLifecycleObserver.h"
|
| #include "core/loader/resource/ScriptResource.h"
|
| #include "platform/heap/Handle.h"
|
|
|
| @@ -21,12 +21,14 @@ class WorkletScriptLoader;
|
|
|
| class CORE_EXPORT Worklet : public GarbageCollectedFinalized<Worklet>,
|
| public ScriptWrappable,
|
| - public SuspendableObject {
|
| + public ContextLifecycleObserver {
|
| DEFINE_WRAPPERTYPEINFO();
|
| USING_GARBAGE_COLLECTED_MIXIN(Worklet);
|
| WTF_MAKE_NONCOPYABLE(Worklet);
|
|
|
| public:
|
| + virtual ~Worklet() {}
|
| +
|
| virtual void initialize() {}
|
| virtual bool isInitialized() const { return true; }
|
|
|
| @@ -37,7 +39,7 @@ class CORE_EXPORT Worklet : public GarbageCollectedFinalized<Worklet>,
|
|
|
| void notifyFinished(WorkletScriptLoader*);
|
|
|
| - // SuspendableObject
|
| + // ContextLifecycleObserver
|
| void contextDestroyed() final;
|
|
|
| DECLARE_VIRTUAL_TRACE();
|
|
|