#include "net/quic/quic_connectivity_monitor.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
namespace net {
namespace {
bool IsErrorRelatedToConnectivity(int error_code) { … }
}
QuicConnectivityMonitor::QuicConnectivityMonitor(
handles::NetworkHandle default_network)
: … { … }
QuicConnectivityMonitor::~QuicConnectivityMonitor() = default;
void QuicConnectivityMonitor::RecordConnectivityStatsToHistograms(
const std::string& notification,
handles::NetworkHandle affected_network) const { … }
size_t QuicConnectivityMonitor::GetNumDegradingSessions() const { … }
size_t QuicConnectivityMonitor::GetCountForWriteErrorCode(
int write_error_code) const { … }
void QuicConnectivityMonitor::SetInitialDefaultNetwork(
handles::NetworkHandle default_network) { … }
void QuicConnectivityMonitor::OnSessionPathDegrading(
QuicChromiumClientSession* session,
handles::NetworkHandle network) { … }
void QuicConnectivityMonitor::OnSessionResumedPostPathDegrading(
QuicChromiumClientSession* session,
handles::NetworkHandle network) { … }
void QuicConnectivityMonitor::OnSessionEncounteringWriteError(
QuicChromiumClientSession* session,
handles::NetworkHandle network,
int error_code) { … }
void QuicConnectivityMonitor::OnSessionClosedAfterHandshake(
QuicChromiumClientSession* session,
handles::NetworkHandle network,
quic::ConnectionCloseSource source,
quic::QuicErrorCode error_code) { … }
void QuicConnectivityMonitor::OnSessionRegistered(
QuicChromiumClientSession* session,
handles::NetworkHandle network) { … }
void QuicConnectivityMonitor::OnSessionRemoved(
QuicChromiumClientSession* session) { … }
void QuicConnectivityMonitor::OnDefaultNetworkUpdated(
handles::NetworkHandle default_network) { … }
void QuicConnectivityMonitor::OnIPAddressChanged() { … }
void QuicConnectivityMonitor::OnSessionGoingAwayOnIPAddressChange(
QuicChromiumClientSession* session) { … }
}