#include "quiche/quic/core/http/quic_server_session_base.h"
#include <algorithm>
#include <cstdlib>
#include <limits>
#include <memory>
#include <optional>
#include <string>
#include <utility>
#include "quiche/quic/core/proto/cached_network_parameters_proto.h"
#include "quiche/quic/core/quic_connection.h"
#include "quiche/quic/core/quic_stream.h"
#include "quiche/quic/core/quic_tag.h"
#include "quiche/quic/core/quic_time.h"
#include "quiche/quic/core/quic_types.h"
#include "quiche/quic/core/quic_utils.h"
#include "quiche/quic/platform/api/quic_bug_tracker.h"
#include "quiche/quic/platform/api/quic_flag_utils.h"
#include "quiche/quic/platform/api/quic_flags.h"
#include "quiche/quic/platform/api/quic_logging.h"
#include "quiche/common/platform/api/quiche_logging.h"
namespace quic {
QuicServerSessionBase::QuicServerSessionBase(
const QuicConfig& config, const ParsedQuicVersionVector& supported_versions,
QuicConnection* connection, Visitor* visitor,
QuicCryptoServerStreamBase::Helper* helper,
const QuicCryptoServerConfig* crypto_config,
QuicCompressedCertsCache* compressed_certs_cache)
: … { … }
QuicServerSessionBase::~QuicServerSessionBase() { … }
void QuicServerSessionBase::Initialize() { … }
void QuicServerSessionBase::OnConfigNegotiated() { … }
void QuicServerSessionBase::OnConnectionClosed(
const QuicConnectionCloseFrame& frame, ConnectionCloseSource source) { … }
void QuicServerSessionBase::OnCongestionWindowChange(QuicTime now) { … }
bool QuicServerSessionBase::ShouldCreateIncomingStream(QuicStreamId id) { … }
bool QuicServerSessionBase::ShouldCreateOutgoingBidirectionalStream() { … }
bool QuicServerSessionBase::ShouldCreateOutgoingUnidirectionalStream() { … }
QuicCryptoServerStreamBase* QuicServerSessionBase::GetMutableCryptoStream() { … }
const QuicCryptoServerStreamBase* QuicServerSessionBase::GetCryptoStream()
const { … }
int32_t QuicServerSessionBase::BandwidthToCachedParameterBytesPerSecond(
const QuicBandwidth& bandwidth) const { … }
void QuicServerSessionBase::SendSettingsToCryptoStream() { … }
QuicSSLConfig QuicServerSessionBase::GetSSLConfig() const { … }
std::optional<CachedNetworkParameters>
QuicServerSessionBase::GenerateCachedNetworkParameters() const { … }
}