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

Unified Diff: third_party/WebKit/Source/core/workers/Worklet.h

Issue 2583093002: Reduce SuspendableObjects (Closed)
Patch Set: Created 4 years 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: 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();
« no previous file with comments | « third_party/WebKit/Source/core/workers/SharedWorker.cpp ('k') | third_party/WebKit/Source/core/workers/Worklet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698