| Index: third_party/WebKit/Source/modules/webaudio/WindowAudioWorklet.h
|
| diff --git a/third_party/WebKit/Source/modules/webaudio/WindowAudioWorklet.h b/third_party/WebKit/Source/modules/webaudio/WindowAudioWorklet.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..708878e9a2f174e35a945f8c18cdfef0ae9c89f5
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/modules/webaudio/WindowAudioWorklet.h
|
| @@ -0,0 +1,39 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef WindowAudioWorklet_h
|
| +#define WindowAudioWorklet_h
|
| +
|
| +#include "core/frame/DOMWindowProperty.h"
|
| +#include "modules/ModulesExport.h"
|
| +#include "platform/Supplementable.h"
|
| +#include "platform/heap/Handle.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class DOMWindow;
|
| +class ExecutionContext;
|
| +class AudioWorklet;
|
| +class Worklet;
|
| +
|
| +class MODULES_EXPORT WindowAudioWorklet final : public GarbageCollected<WindowAudioWorklet>, public Supplement<LocalDOMWindow>, public DOMWindowProperty {
|
| + USING_GARBAGE_COLLECTED_MIXIN(WindowAudioWorklet);
|
| +
|
| +public:
|
| + static WindowAudioWorklet& from(LocalDOMWindow&);
|
| + static Worklet* audioWorklet(ExecutionContext*, DOMWindow&);
|
| + AudioWorklet* audioWorklet(ExecutionContext*) const;
|
| +
|
| + DECLARE_TRACE();
|
| +
|
| +private:
|
| + explicit WindowAudioWorklet(LocalDOMWindow&);
|
| + static const char* supplementName();
|
| +
|
| + mutable Member<AudioWorklet> m_audioWorklet;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // WindowAudioWorklet_h
|
|
|