Index: third_party/WebKit/Source/core/workers/WorkerGlobalScope.h |
diff --git a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h |
index 1c7cdd4cb44a88460e91bbd34c043b03e3df852c..f3e44dd326cbbea60ff45c1a4f0418deebd9b9fa 100644 |
--- a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h |
+++ b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.h |
@@ -27,6 +27,7 @@ |
#ifndef WorkerGlobalScope_h |
#define WorkerGlobalScope_h |
+#include "bindings/core/v8/ActiveScriptWrappable.h" |
#include "bindings/core/v8/V8CacheOptions.h" |
#include "bindings/core/v8/WorkerOrWorkletScriptController.h" |
#include "core/CoreExport.h" |
@@ -56,7 +57,7 @@ class WorkerLocation; |
class WorkerNavigator; |
class WorkerThread; |
-class CORE_EXPORT WorkerGlobalScope : public EventTargetWithInlineData, public SecurityContext, public WorkerOrWorkletGlobalScope, public Supplementable<WorkerGlobalScope>, public DOMWindowBase64 { |
+class CORE_EXPORT WorkerGlobalScope : public EventTargetWithInlineData, public ActiveScriptWrappable, public SecurityContext, public WorkerOrWorkletGlobalScope, public Supplementable<WorkerGlobalScope>, public DOMWindowBase64 { |
DEFINE_WRAPPERTYPEINFO(); |
USING_GARBAGE_COLLECTED_MIXIN(WorkerGlobalScope); |
public: |
@@ -97,6 +98,9 @@ public: |
v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creationContext) final; |
v8::Local<v8::Object> associateWithWrapper(v8::Isolate*, const WrapperTypeInfo*, v8::Local<v8::Object> wrapper) final; |
+ // ActiveScriptWrappable |
+ bool hasPendingActivity() const override; |
+ |
// ExecutionContext |
bool isWorkerGlobalScope() const final { return true; } |
bool isJSExecutionForbidden() const final; |