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 AudioWorkletMessagingProxy_h | 5 #ifndef AudioWorkletMessagingProxy_h |
6 #define AudioWorkletMessagingProxy_h | 6 #define AudioWorkletMessagingProxy_h |
7 | 7 |
| 8 #include <memory> |
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 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class ExecutionContext; | 14 class ExecutionContext; |
15 class WorkerThread; | 15 class WorkerThread; |
16 | 16 |
17 class AudioWorkletMessagingProxy final : public ThreadedWorkletMessagingProxy { | 17 class AudioWorkletMessagingProxy final : public ThreadedWorkletMessagingProxy { |
18 USING_FAST_MALLOC(AudioWorkletMessagingProxy); | 18 USING_FAST_MALLOC(AudioWorkletMessagingProxy); |
19 | 19 |
20 public: | 20 public: |
21 explicit AudioWorkletMessagingProxy(ExecutionContext*); | 21 explicit AudioWorkletMessagingProxy(ExecutionContext*); |
22 | 22 |
23 protected: | 23 protected: |
24 ~AudioWorkletMessagingProxy() override; | 24 ~AudioWorkletMessagingProxy() override; |
25 | 25 |
26 std::unique_ptr<WorkerThread> createWorkerThread(double originTime) override; | 26 std::unique_ptr<WorkerThread> createWorkerThread(double originTime) override; |
27 }; | 27 }; |
28 | 28 |
29 } // namespace blink | 29 } // namespace blink |
30 | 30 |
31 #endif // AudioWorkletMessagingProxy_h | 31 #endif // AudioWorkletMessagingProxy_h |
OLD | NEW |