#include "third_party/blink/renderer/core/streams/transform_stream_default_controller.h"
#include "third_party/blink/renderer/bindings/core/v8/to_v8_traits.h"
#include "third_party/blink/renderer/core/streams/miscellaneous_operations.h"
#include "third_party/blink/renderer/core/streams/promise_handler.h"
#include "third_party/blink/renderer/core/streams/readable_stream.h"
#include "third_party/blink/renderer/core/streams/readable_stream_default_controller.h"
#include "third_party/blink/renderer/core/streams/stream_algorithms.h"
#include "third_party/blink/renderer/core/streams/transform_stream.h"
#include "third_party/blink/renderer/core/streams/writable_stream.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/bindings/script_state.h"
#include "third_party/blink/renderer/platform/bindings/v8_binding.h"
#include "third_party/blink/renderer/platform/bindings/v8_throw_exception.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/wtf/casting.h"
namespace blink {
TransformStreamDefaultController::TransformStreamDefaultController() = default;
TransformStreamDefaultController::~TransformStreamDefaultController() = default;
ReadableStreamDefaultController*
TransformStreamDefaultController::GetDefaultController(
TransformStream* stream) { … }
std::optional<double> TransformStreamDefaultController::desiredSize() const { … }
void TransformStreamDefaultController::enqueue(
ScriptState* script_state,
ExceptionState& exception_state) { … }
void TransformStreamDefaultController::enqueue(
ScriptState* script_state,
ScriptValue chunk,
ExceptionState& exception_state) { … }
void TransformStreamDefaultController::error(ScriptState* script_state) { … }
void TransformStreamDefaultController::error(ScriptState* script_state,
ScriptValue reason) { … }
void TransformStreamDefaultController::terminate(ScriptState* script_state) { … }
void TransformStreamDefaultController::Trace(Visitor* visitor) const { … }
class TransformStreamDefaultController::DefaultTransformAlgorithm final
: public StreamAlgorithm { … };
void TransformStreamDefaultController::SetUp(
ScriptState* script_state,
TransformStream* stream,
TransformStreamDefaultController* controller,
StreamAlgorithm* transform_algorithm,
StreamAlgorithm* flush_algorithm) { … }
v8::Local<v8::Value> TransformStreamDefaultController::SetUpFromTransformer(
ScriptState* script_state,
TransformStream* stream,
v8::Local<v8::Object> transformer,
ExceptionState& exception_state) { … }
void TransformStreamDefaultController::ClearAlgorithms(
TransformStreamDefaultController* controller) { … }
void TransformStreamDefaultController::Enqueue(
ScriptState* script_state,
TransformStreamDefaultController* controller,
v8::Local<v8::Value> chunk,
ExceptionState& exception_state) { … }
void TransformStreamDefaultController::Error(
ScriptState* script_state,
TransformStreamDefaultController* controller,
v8::Local<v8::Value> e) { … }
v8::Local<v8::Promise> TransformStreamDefaultController::PerformTransform(
ScriptState* script_state,
TransformStreamDefaultController* controller,
v8::Local<v8::Value> chunk) { … }
void TransformStreamDefaultController::Terminate(
ScriptState* script_state,
TransformStreamDefaultController* controller) { … }
}