| Index: Source/web/SuspendableScriptExecutor.h
|
| diff --git a/Source/web/SuspendableScriptExecutor.h b/Source/web/SuspendableScriptExecutor.h
|
| index 9b5052e43795ba467e65106bb11f5c5090a5bf7a..8b2edba1afec86a8b0e0db4c9e331b5a883961ae 100644
|
| --- a/Source/web/SuspendableScriptExecutor.h
|
| +++ b/Source/web/SuspendableScriptExecutor.h
|
| @@ -5,7 +5,7 @@
|
| #ifndef SuspendableScriptExecutor_h
|
| #define SuspendableScriptExecutor_h
|
|
|
| -#include "core/dom/ActiveDOMObject.h"
|
| +#include "core/frame/SuspendableTimer.h"
|
| #include "platform/heap/Handle.h"
|
| #include "wtf/OwnPtr.h"
|
| #include "wtf/Vector.h"
|
| @@ -16,13 +16,12 @@ class LocalFrame;
|
| class ScriptSourceCode;
|
| class WebScriptExecutionCallback;
|
|
|
| -class SuspendableScriptExecutor final : public RefCountedWillBeRefCountedGarbageCollected<SuspendableScriptExecutor>, public ActiveDOMObject {
|
| +class SuspendableScriptExecutor final : public RefCountedWillBeRefCountedGarbageCollected<SuspendableScriptExecutor>, public SuspendableTimer {
|
| WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SuspendableScriptExecutor);
|
| public:
|
| static void createAndRun(LocalFrame*, int worldID, const WillBeHeapVector<ScriptSourceCode>& sources, int extensionGroup, bool userGesture, WebScriptExecutionCallback*);
|
| virtual ~SuspendableScriptExecutor();
|
|
|
| - virtual void resume() override;
|
| virtual void contextDestroyed() override;
|
|
|
| virtual void trace(Visitor*) override;
|
| @@ -30,6 +29,8 @@ public:
|
| private:
|
| SuspendableScriptExecutor(LocalFrame*, int worldID, const WillBeHeapVector<ScriptSourceCode>& sources, int extensionGroup, bool userGesture, WebScriptExecutionCallback*);
|
|
|
| + virtual void fired() override;
|
| +
|
| void run();
|
| void executeAndDestroySelf();
|
|
|
|
|