#include "net/tools/quic/quic_client_message_loop_network_helper.h"
#include <memory>
#include <utility>
#include "base/logging.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "net/base/net_errors.h"
#include "net/http/http_request_info.h"
#include "net/http/http_response_info.h"
#include "net/log/net_log_source.h"
#include "net/log/net_log_with_source.h"
#include "net/quic/address_utils.h"
#include "net/quic/quic_chromium_alarm_factory.h"
#include "net/quic/quic_chromium_connection_helper.h"
#include "net/quic/quic_chromium_packet_reader.h"
#include "net/quic/quic_chromium_packet_writer.h"
#include "net/socket/udp_client_socket.h"
#include "net/spdy/spdy_http_utils.h"
#include "net/third_party/quiche/src/quiche/quic/core/crypto/quic_random.h"
#include "net/third_party/quiche/src/quiche/quic/core/http/spdy_utils.h"
#include "net/third_party/quiche/src/quiche/quic/core/quic_connection.h"
#include "net/third_party/quiche/src/quiche/quic/core/quic_packets.h"
#include "net/third_party/quiche/src/quiche/quic/core/quic_server_id.h"
#include "net/third_party/quiche/src/quiche/quic/platform/api/quic_flags.h"
string;
namespace net {
QuicClientMessageLooplNetworkHelper::QuicClientMessageLooplNetworkHelper(
quic::QuicChromiumClock* clock,
quic::QuicClientBase* client)
: … { … }
QuicClientMessageLooplNetworkHelper::~QuicClientMessageLooplNetworkHelper() =
default;
bool QuicClientMessageLooplNetworkHelper::CreateUDPSocketAndBind(
quic::QuicSocketAddress server_address,
quic::QuicIpAddress bind_to_address,
int bind_to_port) { … }
void QuicClientMessageLooplNetworkHelper::CleanUpAllUDPSockets() { … }
void QuicClientMessageLooplNetworkHelper::StartPacketReaderIfNotStarted() { … }
void QuicClientMessageLooplNetworkHelper::RunEventLoop() { … }
quic::QuicPacketWriter*
QuicClientMessageLooplNetworkHelper::CreateQuicPacketWriter() { … }
bool QuicClientMessageLooplNetworkHelper::OnReadError(
int result,
const DatagramClientSocket* socket) { … }
quic::QuicSocketAddress
QuicClientMessageLooplNetworkHelper::GetLatestClientAddress() const { … }
bool QuicClientMessageLooplNetworkHelper::OnPacket(
const quic::QuicReceivedPacket& packet,
const quic::QuicSocketAddress& local_address,
const quic::QuicSocketAddress& peer_address) { … }
}