#include "third_party/blink/renderer/modules/peerconnection/rtc_encoded_video_underlying_sink.h"
#include "base/unguessable_token.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_rtc_encoded_video_frame.h"
#include "third_party/blink/renderer/core/dom/dom_exception.h"
#include "third_party/blink/renderer/modules/peerconnection/rtc_encoded_video_frame.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/peerconnection/rtc_encoded_video_stream_transformer.h"
#include "third_party/webrtc/api/frame_transformer_interface.h"
namespace blink {
TransformableFrameInterface;
RTCEncodedVideoUnderlyingSink::RTCEncodedVideoUnderlyingSink(
ScriptState* script_state,
scoped_refptr<blink::RTCEncodedVideoStreamTransformer::Broker>
transformer_broker,
bool detach_frame_data_on_write)
: … { … }
RTCEncodedVideoUnderlyingSink::RTCEncodedVideoUnderlyingSink(
ScriptState* script_state,
scoped_refptr<blink::RTCEncodedVideoStreamTransformer::Broker>
transformer_broker,
bool detach_frame_data_on_write,
bool enable_frame_restrictions,
base::UnguessableToken owner_id)
: … { … }
ScriptPromise<IDLUndefined> RTCEncodedVideoUnderlyingSink::start(
ScriptState* script_state,
WritableStreamDefaultController* controller,
ExceptionState&) { … }
ScriptPromise<IDLUndefined> RTCEncodedVideoUnderlyingSink::write(
ScriptState* script_state,
ScriptValue chunk,
WritableStreamDefaultController* controller,
ExceptionState& exception_state) { … }
ScriptPromise<IDLUndefined> RTCEncodedVideoUnderlyingSink::close(
ScriptState* script_state,
ExceptionState&) { … }
ScriptPromise<IDLUndefined> RTCEncodedVideoUnderlyingSink::abort(
ScriptState* script_state,
ScriptValue reason,
ExceptionState& exception_state) { … }
void RTCEncodedVideoUnderlyingSink::ResetTransformerCallback() { … }
void RTCEncodedVideoUnderlyingSink::Trace(Visitor* visitor) const { … }
}