Index: third_party/WebKit/Source/modules/webaudio/AudioWorklet.cpp |
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioWorklet.cpp b/third_party/WebKit/Source/modules/webaudio/AudioWorklet.cpp |
index b6f18700bd8702587b9a941e1beed575085725f1..cb1b8b36d2abf7dac4d241334be61cc32d04023c 100644 |
--- a/third_party/WebKit/Source/modules/webaudio/AudioWorklet.cpp |
+++ b/third_party/WebKit/Source/modules/webaudio/AudioWorklet.cpp |
@@ -21,6 +21,11 @@ AudioWorklet::AudioWorklet(LocalFrame* frame) : Worklet(frame) {} |
AudioWorklet::~AudioWorklet() {} |
+AudioWorkletMessagingProxy* AudioWorklet::GetWorkletMessagingProxy() const { |
+ return static_cast<AudioWorkletMessagingProxy*>( |
+ FindAvailableGlobalScope()); |
+} |
+ |
bool AudioWorklet::NeedsToCreateGlobalScope() { |
// For now, create only one global scope per document. |
// TODO(nhiroki): Revisit this later. |