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

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

Issue 2432543002: Refactoring WorkletThreadBackingHolder with template pattern (Closed)
Patch Set: Fixing typos Created 4 years, 2 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/AudioWorkletThread.h
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.h b/third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.h
index df7683c46d04aee5d3cbd4949197d8a2943d2845..a6cebdfd1f20b57fb4491428c8ef9022da0af7ae 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.h
+++ b/third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.h
@@ -7,6 +7,7 @@
#include "core/workers/WorkerLoaderProxy.h"
#include "core/workers/WorkerThread.h"
+#include "core/workers/WorkletThreadHolder.h"
#include "modules/ModulesExport.h"
#include <memory>
@@ -36,10 +37,10 @@ class MODULES_EXPORT AudioWorkletThread final : public WorkerThread {
static void collectAllGarbage();
static void ensureSharedBackingThread();
- static void createSharedBackingThreadForTest();
-
static void clearSharedBackingThread();
+ static void createSharedBackingThreadForTest();
+
protected:
WorkerOrWorkletGlobalScope* createWorkerGlobalScope(
std::unique_ptr<WorkerThreadStartupData>) final;
@@ -47,8 +48,7 @@ class MODULES_EXPORT AudioWorkletThread final : public WorkerThread {
bool isOwningBackingThread() const override { return false; }
private:
- explicit AudioWorkletThread(PassRefPtr<WorkerLoaderProxy>,
- WorkerReportingProxy&);
+ AudioWorkletThread(PassRefPtr<WorkerLoaderProxy>, WorkerReportingProxy&);
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698