blob: b21ac7a467953cb7aa26ab4728aaecea4559e277 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "modules/webaudio/AudioWorkletMessagingProxy.h"
#include "core/workers/ThreadedWorkletObjectProxy.h"
#include "modules/webaudio/AudioWorkletThread.h"
namespace blink {
AudioWorkletMessagingProxy::AudioWorkletMessagingProxy(
ExecutionContext* execution_context,
WorkerClients* worker_clients)
: ThreadedWorkletMessagingProxy(execution_context, worker_clients) {}
AudioWorkletMessagingProxy::~AudioWorkletMessagingProxy() {}
std::unique_ptr<WorkerThread> AudioWorkletMessagingProxy::CreateWorkerThread(
double origin_time) {
return AudioWorkletThread::Create(CreateThreadableLoadingContext(),
WorkletObjectProxy());
}
} // namespace blink