| 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 AnimationWorkletMessagingProxy_h | 5 #ifndef AnimationWorkletMessagingProxy_h |
| 6 #define AnimationWorkletMessagingProxy_h | 6 #define AnimationWorkletMessagingProxy_h |
| 7 | 7 |
| 8 #include "core/dom/AnimationWorkletProxyClient.h" |
| 8 #include "core/workers/ThreadedWorkletMessagingProxy.h" | 9 #include "core/workers/ThreadedWorkletMessagingProxy.h" |
| 9 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
| 10 #include <memory> | 11 #include <memory> |
| 11 | 12 |
| 12 namespace blink { | 13 namespace blink { |
| 13 | 14 |
| 14 class ExecutionContext; | 15 class ExecutionContext; |
| 15 class WorkerThread; | 16 class WorkerThread; |
| 16 | 17 |
| 17 class AnimationWorkletMessagingProxy final | 18 class AnimationWorkletMessagingProxy final |
| 18 : public ThreadedWorkletMessagingProxy { | 19 : public ThreadedWorkletMessagingProxy { |
| 19 USING_FAST_MALLOC(AnimationWorkletMessagingProxy); | 20 USING_FAST_MALLOC(AnimationWorkletMessagingProxy); |
| 20 | 21 |
| 21 public: | 22 public: |
| 22 explicit AnimationWorkletMessagingProxy(ExecutionContext*); | 23 AnimationWorkletMessagingProxy(ExecutionContext*, |
| 24 AnimationWorkletProxyClient*); |
| 23 | 25 |
| 24 protected: | 26 protected: |
| 25 ~AnimationWorkletMessagingProxy() override; | 27 ~AnimationWorkletMessagingProxy() override; |
| 26 | 28 |
| 27 std::unique_ptr<WorkerThread> createWorkerThread(double originTime) override; | 29 std::unique_ptr<WorkerThread> createWorkerThread(double originTime) override; |
| 30 Persistent<AnimationWorkletProxyClient> m_proxyClient; |
| 28 }; | 31 }; |
| 29 | 32 |
| 30 } // namespace blink | 33 } // namespace blink |
| 31 | 34 |
| 32 #endif // AnimationWorkletMessagingProxy_h | 35 #endif // AnimationWorkletMessagingProxy_h |
| OLD | NEW |