Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioWorklet.h

Issue 2912743002: [WIP] Worklet: Merge MainThreadWorklet and ThreadedWorklet into Worklet
Patch Set: WIP Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698