#include "third_party/blink/renderer/modules/compression/deflate_transformer.h"
#include <algorithm>
#include <cstring>
#include <limits>
#include "base/trace_event/typed_macros.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise.h"
#include "third_party/blink/renderer/bindings/core/v8/to_v8_traits.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_core.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_typedefs.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_union_arraybuffer_arraybufferview.h"
#include "third_party/blink/renderer/core/streams/transform_stream_default_controller.h"
#include "third_party/blink/renderer/core/streams/transform_stream_transformer.h"
#include "third_party/blink/renderer/core/typed_arrays/array_buffer_view_helpers.h"
#include "third_party/blink/renderer/core/typed_arrays/dom_array_piece.h"
#include "third_party/blink/renderer/modules/compression/compression_format.h"
#include "third_party/blink/renderer/modules/compression/zlib_partition_alloc.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "v8/include/v8.h"
namespace blink {
DeflateTransformer::DeflateTransformer(ScriptState* script_state,
CompressionFormat format,
int level)
: … { … }
DeflateTransformer::~DeflateTransformer() { … }
ScriptPromise<IDLUndefined> DeflateTransformer::Transform(
v8::Local<v8::Value> chunk,
TransformStreamDefaultController* controller,
ExceptionState& exception_state) { … }
ScriptPromise<IDLUndefined> DeflateTransformer::Flush(
TransformStreamDefaultController* controller,
ExceptionState& exception_state) { … }
void DeflateTransformer::Deflate(const uint8_t* start,
wtf_size_t length,
IsFinished finished,
TransformStreamDefaultController* controller,
ExceptionState& exception_state) { … }
void DeflateTransformer::Trace(Visitor* visitor) const { … }
}