#include "net/quic/quic_chromium_packet_reader.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/metrics/histogram_macros.h"
#include "base/task/single_thread_task_runner.h"
#include "net/base/features.h"
#include "net/base/net_errors.h"
#include "net/quic/address_utils.h"
#include "net/third_party/quiche/src/quiche/quic/core/quic_clock.h"
#include "net/third_party/quiche/src/quiche/quic/core/quic_types.h"
namespace net {
namespace {
const size_t kReadBufferSize = …;
}
QuicChromiumPacketReader::QuicChromiumPacketReader(
std::unique_ptr<DatagramClientSocket> socket,
const quic::QuicClock* clock,
Visitor* visitor,
int yield_after_packets,
quic::QuicTime::Delta yield_after_duration,
bool report_ecn,
const NetLogWithSource& net_log)
: … { … }
QuicChromiumPacketReader::~QuicChromiumPacketReader() = default;
void QuicChromiumPacketReader::StartReading() { … }
void QuicChromiumPacketReader::CloseSocket() { … }
static_assert …;
bool QuicChromiumPacketReader::ProcessReadResult(int result) { … }
void QuicChromiumPacketReader::OnReadComplete(int result) { … }
}