OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef AudioWorklet_h |
| 6 #define AudioWorklet_h |
| 7 |
| 8 #include "modules/ModulesExport.h" |
| 9 #include "modules/worklet/Worklet.h" |
| 10 #include "platform/heap/Handle.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 class AudioWorkletProcessorDefinition; |
| 15 class AudioWorkletGlobalScope; |
| 16 |
| 17 class MODULES_EXPORT AudioWorklet final : public Worklet { |
| 18 WTF_MAKE_NONCOPYABLE(AudioWorklet); |
| 19 |
| 20 public: |
| 21 static AudioWorklet* create(LocalFrame*, ExecutionContext*); |
| 22 ~AudioWorklet() override; |
| 23 |
| 24 WorkletGlobalScope* workletGlobalScope() const final; |
| 25 AudioWorkletProcessorDefinition* findDefinition(const String& name); |
| 26 |
| 27 DECLARE_VIRTUAL_TRACE(); |
| 28 |
| 29 private: |
| 30 AudioWorklet(LocalFrame*, ExecutionContext*); |
| 31 |
| 32 Member<AudioWorkletGlobalScope> m_audioWorkletGlobalScope; |
| 33 }; |
| 34 |
| 35 } // namespace blink |
| 36 |
| 37 #endif // AudioWorklet_h |
OLD | NEW |