#include "third_party/blink/renderer/modules/breakout_box/pushable_media_stream_audio_source.h"
#include "base/synchronization/lock.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "media/base/audio_glitch_info.h"
#include "third_party/blink/public/mojom/mediastream/media_stream.mojom-blink.h"
#include "third_party/blink/renderer/platform/scheduler/public/post_cross_thread_task.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_copier_base.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
namespace blink {
PushableMediaStreamAudioSource::Broker::Broker(
PushableMediaStreamAudioSource* source,
scoped_refptr<base::SequencedTaskRunner> audio_task_runner)
: … { … }
void PushableMediaStreamAudioSource::Broker::OnClientStarted() { … }
void PushableMediaStreamAudioSource::Broker::OnClientStopped() { … }
bool PushableMediaStreamAudioSource::Broker::IsRunning() { … }
void PushableMediaStreamAudioSource::Broker::PushAudioData(
scoped_refptr<media::AudioBuffer> data) { … }
void PushableMediaStreamAudioSource::Broker::StopSource() { … }
void PushableMediaStreamAudioSource::Broker::
SetShouldDeliverAudioOnAudioTaskRunner(
bool should_deliver_audio_on_audio_task_runner) { … }
bool PushableMediaStreamAudioSource::Broker::
ShouldDeliverAudioOnAudioTaskRunner() { … }
void PushableMediaStreamAudioSource::Broker::OnSourceStarted() { … }
void PushableMediaStreamAudioSource::Broker::OnSourceDestroyedOrStopped() { … }
void PushableMediaStreamAudioSource::Broker::StopSourceOnMain() { … }
void PushableMediaStreamAudioSource::Broker::AssertLockAcquired() const { … }
PushableMediaStreamAudioSource::PushableMediaStreamAudioSource(
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
scoped_refptr<base::SequencedTaskRunner> audio_task_runner)
: … { … }
PushableMediaStreamAudioSource::~PushableMediaStreamAudioSource() { … }
void PushableMediaStreamAudioSource::PushAudioData(
scoped_refptr<media::AudioBuffer> data) { … }
void PushableMediaStreamAudioSource::DeliverData(
scoped_refptr<media::AudioBuffer> data) { … }
bool PushableMediaStreamAudioSource::EnsureSourceIsStarted() { … }
void PushableMediaStreamAudioSource::EnsureSourceIsStopped() { … }
}