#include "net/filter/zstd_source_stream.h"
#include <algorithm>
#include <unordered_map>
#include <utility>
#define ZSTD_STATIC_LINKING_ONLY
#include "base/bits.h"
#include "base/check_op.h"
#include "base/metrics/histogram_macros.h"
#include "base/numerics/safe_conversions.h"
#include "net/base/io_buffer.h"
#include "third_party/zstd/src/lib/zstd.h"
#include "third_party/zstd/src/lib/zstd_errors.h"
namespace net {
namespace {
const char kZstd[] = …;
struct FreeContextDeleter { … };
class ZstdSourceStream : public FilterSourceStream { … };
}
std::unique_ptr<FilterSourceStream> CreateZstdSourceStream(
std::unique_ptr<SourceStream> previous) { … }
std::unique_ptr<FilterSourceStream> CreateZstdSourceStreamWithDictionary(
std::unique_ptr<SourceStream> previous,
scoped_refptr<IOBuffer> dictionary,
size_t dictionary_size) { … }
}