// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifdef UNSAFE_BUFFERS_BUILD // TODO(crbug.com/40284755): Remove this and spanify to fix the errors. #pragma allow_unsafe_buffers #endif #include "net/filter/gzip_header.h" #include <string.h> #include <algorithm> #include "base/check_op.h" #include "third_party/zlib/zlib.h" namespace net { const uint8_t GZipHeader::magic[] = …; GZipHeader::GZipHeader() { … } GZipHeader::~GZipHeader() = default; void GZipHeader::Reset() { … } GZipHeader::Status GZipHeader::ReadMore(const char* inbuf, size_t inbuf_len, const char** header_end) { … } } // namespace net