#include "quiche/spdy/core/hpack/hpack_decoder_adapter.h"
#include <cstddef>
#include <string>
#include "absl/strings/string_view.h"
#include "quiche/http2/core/spdy_headers_handler_interface.h"
#include "quiche/http2/decoder/decode_buffer.h"
#include "quiche/http2/hpack/decoder/hpack_decoding_error.h"
#include "quiche/common/http/http_header_block.h"
#include "quiche/common/platform/api/quiche_logging.h"
namespace spdy {
namespace {
const size_t kMaxDecodeBufferSizeBytes = …;
}
HpackDecoderAdapter::HpackDecoderAdapter()
: … { … }
HpackDecoderAdapter::~HpackDecoderAdapter() = default;
void HpackDecoderAdapter::ApplyHeaderTableSizeSetting(size_t size_setting) { … }
size_t HpackDecoderAdapter::GetCurrentHeaderTableSizeSetting() const { … }
void HpackDecoderAdapter::HandleControlFrameHeadersStart(
SpdyHeadersHandlerInterface* handler) { … }
bool HpackDecoderAdapter::HandleControlFrameHeadersData(
const char* headers_data, size_t headers_data_length) { … }
bool HpackDecoderAdapter::HandleControlFrameHeadersComplete() { … }
void HpackDecoderAdapter::set_max_decode_buffer_size_bytes(
size_t max_decode_buffer_size_bytes) { … }
void HpackDecoderAdapter::set_max_header_block_bytes(
size_t max_header_block_bytes) { … }
HpackDecoderAdapter::ListenerAdapter::ListenerAdapter()
: … { … }
HpackDecoderAdapter::ListenerAdapter::~ListenerAdapter() = default;
void HpackDecoderAdapter::ListenerAdapter::set_handler(
SpdyHeadersHandlerInterface* handler) { … }
void HpackDecoderAdapter::ListenerAdapter::OnHeaderListStart() { … }
void HpackDecoderAdapter::ListenerAdapter::OnHeader(absl::string_view name,
absl::string_view value) { … }
void HpackDecoderAdapter::ListenerAdapter::OnHeaderListEnd() { … }
void HpackDecoderAdapter::ListenerAdapter::OnHeaderErrorDetected(
absl::string_view error_message) { … }
}