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

Unified Diff: third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.h

Issue 2254593002: [worklets] Introduce AnimationWorkletGlobalScope and ThreadedWorkletGlobalScope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add super call to WorkletGlobalScope::dispose() Created 4 years, 4 months 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/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

Powered by Google App Engine
This is Rietveld 408576698