| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WorkerInternals_h | 5 #ifndef AnimationWorkletGlobalScope_h |
| 6 #define WorkerInternals_h | 6 #define AnimationWorkletGlobalScope_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptState.h" | 8 #include "core/workers/ThreadedWorkletGlobalScope.h" |
| 9 #include "bindings/core/v8/ScriptWrappable.h" | |
| 10 #include "platform/heap/GarbageCollected.h" | |
| 11 | 9 |
| 12 namespace blink { | 10 namespace blink { |
| 13 | 11 |
| 14 class WorkerInternals final : public GarbageCollectedFinalized<WorkerInternals>,
public ScriptWrappable { | 12 class AnimationWorkletGlobalScope : public ThreadedWorkletGlobalScope { |
| 15 DEFINE_WRAPPERTYPEINFO(); | 13 DEFINE_WRAPPERTYPEINFO(); |
| 16 public: | 14 public: |
| 17 static WorkerInternals* create(ScriptState*); | 15 static AnimationWorkletGlobalScope* create(const KURL&, const String& userAg
ent, PassRefPtr<SecurityOrigin>, v8::Isolate*, WorkerThread*); |
| 18 virtual ~WorkerInternals(); | 16 ~AnimationWorkletGlobalScope() override; |
| 19 | 17 |
| 20 DEFINE_INLINE_TRACE() {} | |
| 21 private: | 18 private: |
| 22 explicit WorkerInternals(ScriptState*); | 19 AnimationWorkletGlobalScope(const KURL&, const String& userAgent, PassRefPtr
<SecurityOrigin>, v8::Isolate*, WorkerThread*); |
| 23 }; | 20 }; |
| 24 | 21 |
| 25 } // namespace blink | 22 } // namespace blink |
| 26 | 23 |
| 27 #endif // WorkerInternals_h | 24 #endif // AnimationWorkletGlobalScope_h |
| OLD | NEW |