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 WindowAudioWorklet_h |
| 6 #define WindowAudioWorklet_h |
| 7 |
| 8 #include "core/frame/DOMWindowProperty.h" |
| 9 #include "modules/ModulesExport.h" |
| 10 #include "platform/Supplementable.h" |
| 11 #include "platform/heap/Handle.h" |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 class DOMWindow; |
| 16 class ExecutionContext; |
| 17 class AudioWorklet; |
| 18 class Worklet; |
| 19 |
| 20 class MODULES_EXPORT WindowAudioWorklet final : public GarbageCollected<WindowAu
dioWorklet>, public Supplement<LocalDOMWindow>, public DOMWindowProperty { |
| 21 USING_GARBAGE_COLLECTED_MIXIN(WindowAudioWorklet); |
| 22 |
| 23 public: |
| 24 static WindowAudioWorklet& from(LocalDOMWindow&); |
| 25 static Worklet* audioWorklet(ExecutionContext*, DOMWindow&); |
| 26 AudioWorklet* audioWorklet(ExecutionContext*) const; |
| 27 |
| 28 DECLARE_TRACE(); |
| 29 |
| 30 private: |
| 31 explicit WindowAudioWorklet(LocalDOMWindow&); |
| 32 static const char* supplementName(); |
| 33 |
| 34 mutable Member<AudioWorklet> m_audioWorklet; |
| 35 }; |
| 36 |
| 37 } // namespace blink |
| 38 |
| 39 #endif // WindowAudioWorklet_h |
OLD | NEW |