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