Index: third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.h |
diff --git a/third_party/WebKit/Source/core/testing/WorkerInternals.h b/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.h |
similarity index 31% |
copy from third_party/WebKit/Source/core/testing/WorkerInternals.h |
copy to third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.h |
index 8ff28584f8e5a0113265a17a2757f2a5edade293..9551b1e9fd6807aaf08a10a0e6fcf4cb184895fb 100644 |
--- a/third_party/WebKit/Source/core/testing/WorkerInternals.h |
+++ b/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.h |
@@ -2,26 +2,23 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef WorkerInternals_h |
-#define WorkerInternals_h |
+#ifndef AnimationWorkletGlobalScope_h |
+#define AnimationWorkletGlobalScope_h |
-#include "bindings/core/v8/ScriptState.h" |
-#include "bindings/core/v8/ScriptWrappable.h" |
-#include "platform/heap/GarbageCollected.h" |
+#include "core/workers/ThreadedWorkletGlobalScope.h" |
namespace blink { |
-class WorkerInternals final : public GarbageCollectedFinalized<WorkerInternals>, public ScriptWrappable { |
+class AnimationWorkletGlobalScope : public ThreadedWorkletGlobalScope { |
DEFINE_WRAPPERTYPEINFO(); |
public: |
- static WorkerInternals* create(ScriptState*); |
- virtual ~WorkerInternals(); |
+ static AnimationWorkletGlobalScope* create(const KURL&, const String& userAgent, PassRefPtr<SecurityOrigin>, v8::Isolate*, WorkerThread*); |
+ ~AnimationWorkletGlobalScope() override; |
- DEFINE_INLINE_TRACE() {} |
private: |
- explicit WorkerInternals(ScriptState*); |
+ AnimationWorkletGlobalScope(const KURL&, const String& userAgent, PassRefPtr<SecurityOrigin>, v8::Isolate*, WorkerThread*); |
}; |
} // namespace blink |
-#endif // WorkerInternals_h |
+#endif // AnimationWorkletGlobalScope_h |