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