#include "third_party/blink/renderer/modules/peerconnection/rtc_encoded_audio_underlying_source.h"
#include "base/memory/ptr_util.h"
#include "base/unguessable_token.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_throw_dom_exception.h"
#include "third_party/blink/renderer/core/streams/readable_stream_default_controller_with_script_scope.h"
#include "third_party/blink/renderer/modules/peerconnection/rtc_encoded_audio_frame.h"
#include "third_party/blink/renderer/modules/peerconnection/rtc_encoded_audio_frame_delegate.h"
#include "third_party/blink/renderer/platform/bindings/exception_code.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/heap/cross_thread_persistent.h"
#include "third_party/blink/renderer/platform/scheduler/public/post_cross_thread_task.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h"
#include "third_party/blink/renderer/platform/wtf/vector.h"
#include "third_party/webrtc/api/frame_transformer_interface.h"
namespace blink {
const int RTCEncodedAudioUnderlyingSource::kMinQueueDesiredSize = …;
RTCEncodedAudioUnderlyingSource::RTCEncodedAudioUnderlyingSource(
ScriptState* script_state,
WTF::CrossThreadOnceClosure disconnect_callback)
: … { … }
RTCEncodedAudioUnderlyingSource::RTCEncodedAudioUnderlyingSource(
ScriptState* script_state,
WTF::CrossThreadOnceClosure disconnect_callback,
bool enable_frame_restrictions,
base::UnguessableToken owner_id,
ReadableStreamDefaultControllerWithScriptScope* override_controller)
: … { … }
ReadableStreamDefaultControllerWithScriptScope*
RTCEncodedAudioUnderlyingSource::GetController() { … }
ScriptPromiseUntyped RTCEncodedAudioUnderlyingSource::Pull(
ScriptState* script_state,
ExceptionState&) { … }
ScriptPromiseUntyped RTCEncodedAudioUnderlyingSource::Cancel(
ScriptState* script_state,
ScriptValue reason,
ExceptionState&) { … }
void RTCEncodedAudioUnderlyingSource::Trace(Visitor* visitor) const { … }
void RTCEncodedAudioUnderlyingSource::OnFrameFromSource(
std::unique_ptr<webrtc::TransformableAudioFrameInterface> webrtc_frame) { … }
void RTCEncodedAudioUnderlyingSource::Close() { … }
void RTCEncodedAudioUnderlyingSource::OnSourceTransferStartedOnTaskRunner() { … }
void RTCEncodedAudioUnderlyingSource::OnSourceTransferStarted() { … }
}