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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioWorkletThreadTest.cpp

Issue 2513413003: Worker: Provide a way to access parent frame task runners from a worker thread (Closed)
Patch Set: update comments Created 4 years, 1 month 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/AudioWorkletThreadTest.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioWorkletThreadTest.cpp b/third_party/WebKit/Source/modules/webaudio/AudioWorkletThreadTest.cpp
index a792f5f8f32180ea1c88237deb763399c94c3e75..02751b8cdb3e86d27274f7567c3bf0298191cc9c 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioWorkletThreadTest.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioWorkletThreadTest.cpp
@@ -9,6 +9,7 @@
#include "bindings/core/v8/V8GCController.h"
#include "bindings/core/v8/WorkerOrWorkletScriptController.h"
#include "core/inspector/ConsoleMessage.h"
+#include "core/workers/ParentFrameTaskRunners.h"
#include "core/workers/WorkerBackingThread.h"
#include "core/workers/WorkerLoaderProxy.h"
#include "core/workers/WorkerOrWorkletGlobalScope.h"
@@ -46,6 +47,9 @@ class TestAudioWorkletReportingProxy : public WorkerReportingProxy {
const String& message,
SourceLocation*) override {}
void postMessageToPageInspector(const String&) override {}
+ ParentFrameTaskRunners* getParentFrameTaskRunners() override {
+ return m_parentFrameTaskRunners.get();
+ }
void didEvaluateWorkerScript(bool success) override {}
void didCloseWorkerGlobalScope() override {}
@@ -53,7 +57,10 @@ class TestAudioWorkletReportingProxy : public WorkerReportingProxy {
void didTerminateWorkerThread() override {}
private:
- TestAudioWorkletReportingProxy() {}
+ TestAudioWorkletReportingProxy()
+ : m_parentFrameTaskRunners(ParentFrameTaskRunners::create(nullptr)) {}
+
+ Persistent<ParentFrameTaskRunners> m_parentFrameTaskRunners;
};
} // namespace

Powered by Google App Engine
This is Rietveld 408576698