#include "net/quic/quic_http3_logger.h"
#include <algorithm>
#include <memory>
#include <string_view>
#include <utility>
#include <vector>
#include "base/metrics/histogram_macros.h"
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "net/http/http_log_util.h"
#include "net/log/net_log_capture_mode.h"
#include "net/log/net_log_event_type.h"
#include "net/log/net_log_values.h"
#include "net/spdy/spdy_log_util.h"
namespace net {
namespace {
base::Value::Dict NetLogSettingsParams(const quic::SettingsFrame& frame) { … }
base::Value::Dict NetLogPriorityUpdateParams(
const quic::PriorityUpdateFrame& frame) { … }
base::Value::Dict NetLogTwoIntParams(std::string_view name1,
uint64_t value1,
std::string_view name2,
uint64_t value2) { … }
base::Value::Dict NetLogThreeIntParams(std::string_view name1,
uint64_t value1,
std::string_view name2,
uint64_t value2,
std::string_view name3,
uint64_t value3) { … }
base::Value::List ElideQuicHeaderListForNetLog(
const quic::QuicHeaderList& headers,
NetLogCaptureMode capture_mode) { … }
}
QuicHttp3Logger::QuicHttp3Logger(const NetLogWithSource& net_log)
: … { … }
QuicHttp3Logger::~QuicHttp3Logger() = default;
void QuicHttp3Logger::OnControlStreamCreated(quic::QuicStreamId stream_id) { … }
void QuicHttp3Logger::OnQpackEncoderStreamCreated(
quic::QuicStreamId stream_id) { … }
void QuicHttp3Logger::OnQpackDecoderStreamCreated(
quic::QuicStreamId stream_id) { … }
void QuicHttp3Logger::OnPeerControlStreamCreated(quic::QuicStreamId stream_id) { … }
void QuicHttp3Logger::OnPeerQpackEncoderStreamCreated(
quic::QuicStreamId stream_id) { … }
void QuicHttp3Logger::OnPeerQpackDecoderStreamCreated(
quic::QuicStreamId stream_id) { … }
void QuicHttp3Logger::OnSettingsFrameReceived(
const quic::SettingsFrame& frame) { … }
void QuicHttp3Logger::OnGoAwayFrameReceived(const quic::GoAwayFrame& frame) { … }
void QuicHttp3Logger::OnPriorityUpdateFrameReceived(
const quic::PriorityUpdateFrame& frame) { … }
void QuicHttp3Logger::OnDataFrameReceived(quic::QuicStreamId stream_id,
quic::QuicByteCount payload_length) { … }
void QuicHttp3Logger::OnHeadersFrameReceived(
quic::QuicStreamId stream_id,
quic::QuicByteCount compressed_headers_length) { … }
void QuicHttp3Logger::OnHeadersDecoded(quic::QuicStreamId stream_id,
quic::QuicHeaderList headers) { … }
void QuicHttp3Logger::OnUnknownFrameReceived(
quic::QuicStreamId stream_id,
uint64_t frame_type,
quic::QuicByteCount payload_length) { … }
void QuicHttp3Logger::OnSettingsFrameSent(const quic::SettingsFrame& frame) { … }
void QuicHttp3Logger::OnSettingsFrameResumed(const quic::SettingsFrame& frame) { … }
void QuicHttp3Logger::OnGoAwayFrameSent(quic::QuicStreamId stream_id) { … }
void QuicHttp3Logger::OnPriorityUpdateFrameSent(
const quic::PriorityUpdateFrame& frame) { … }
void QuicHttp3Logger::OnDataFrameSent(quic::QuicStreamId stream_id,
quic::QuicByteCount payload_length) { … }
void QuicHttp3Logger::OnHeadersFrameSent(
quic::QuicStreamId stream_id,
const quiche::HttpHeaderBlock& header_block) { … }
}