| Index: third_party/WebKit/Source/modules/webaudio/AudioWorklet.h
|
| diff --git a/third_party/WebKit/Source/modules/webaudio/AudioWorklet.h b/third_party/WebKit/Source/modules/webaudio/AudioWorklet.h
|
| index 71ddc90f9aa03f9da585028c4510714b531bb74c..1dcaeea1bded21a00f49a3552a302df212780ed7 100644
|
| --- a/third_party/WebKit/Source/modules/webaudio/AudioWorklet.h
|
| +++ b/third_party/WebKit/Source/modules/webaudio/AudioWorklet.h
|
| @@ -5,36 +5,30 @@
|
| #ifndef AudioWorklet_h
|
| #define AudioWorklet_h
|
|
|
| -#include "core/workers/ThreadedWorklet.h"
|
| +#include "core/workers/Worklet.h"
|
| #include "modules/ModulesExport.h"
|
| #include "platform/heap/Handle.h"
|
|
|
| namespace blink {
|
|
|
| class LocalFrame;
|
| -class ThreadedWorkletMessagingProxy;
|
| class WorkletGlobalScopeProxy;
|
|
|
| -class MODULES_EXPORT AudioWorklet final : public ThreadedWorklet {
|
| +class MODULES_EXPORT AudioWorklet final : public Worklet {
|
| WTF_MAKE_NONCOPYABLE(AudioWorklet);
|
|
|
| public:
|
| static AudioWorklet* Create(LocalFrame*);
|
| ~AudioWorklet() override;
|
|
|
| - void Initialize() final;
|
| - bool IsInitialized() const final;
|
| -
|
| - WorkletGlobalScopeProxy* GetWorkletGlobalScopeProxy() const final;
|
| -
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| private:
|
| explicit AudioWorklet(LocalFrame*);
|
|
|
| - // The proxy outlives the worklet as it is used to perform thread shutdown,
|
| - // it deletes itself once this has occurred.
|
| - ThreadedWorkletMessagingProxy* worklet_messaging_proxy_;
|
| + // Implements Worklet.
|
| + bool NeedsToCreateGlobalScope();
|
| + std::unique_ptr<WorkletGlobalScopeProxy> CreateGlobalScope();
|
| };
|
|
|
| } // namespace blink
|
|
|