#include "net/spdy/alps_decoder.h"
#include <string_view>
#include "base/feature_list.h"
#include "base/metrics/histogram_functions.h"
#include "net/base/features.h"
namespace net {
namespace {
bool ReadUint16PrefixedStringPiece(std::string_view* payload,
std::string_view* output) { … }
}
AlpsDecoder::AlpsDecoder() { … }
AlpsDecoder::~AlpsDecoder() = default;
AlpsDecoder::Error AlpsDecoder::Decode(base::span<const char> data) { … }
int AlpsDecoder::settings_frame_count() const { … }
AlpsDecoder::SettingsParser::SettingsParser() = default;
AlpsDecoder::SettingsParser::~SettingsParser() = default;
void AlpsDecoder::SettingsParser::OnCommonHeader(
spdy::SpdyStreamId ,
size_t ,
uint8_t type,
uint8_t ) { … }
void AlpsDecoder::SettingsParser::OnSettings() { … }
void AlpsDecoder::SettingsParser::OnSetting(spdy::SpdySettingsId id,
uint32_t value) { … }
void AlpsDecoder::SettingsParser::OnSettingsAck() { … }
AlpsDecoder::AcceptChParser::AcceptChParser() = default;
AlpsDecoder::AcceptChParser::~AcceptChParser() = default;
bool AlpsDecoder::AcceptChParser::OnFrameHeader(spdy::SpdyStreamId stream_id,
size_t length,
uint8_t type,
uint8_t flags) { … }
void AlpsDecoder::AcceptChParser::OnFramePayload(const char* data, size_t len) { … }
}