Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1015)

Unified Diff: net/tools/quic/quic_dispatcher.cc

Issue 2464603002: Break reliance of QuicDispatcher on QuicServerSessionBase (Closed)
Patch Set: Updated patchset dependency Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/quic_dispatcher.h ('k') | net/tools/quic/test_tools/mock_quic_server_session_visitor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_dispatcher.cc
diff --git a/net/tools/quic/quic_dispatcher.cc b/net/tools/quic/quic_dispatcher.cc
index c4e1e53542e9a43fb14bf0383c4f1cdfa2bb31ae..758f8a0927c8e530620264dc31cba0d9cecc5aa2 100644
--- a/net/tools/quic/quic_dispatcher.cc
+++ b/net/tools/quic/quic_dispatcher.cc
@@ -475,7 +475,7 @@ bool QuicDispatcher::HasPendingWrites() const {
void QuicDispatcher::Shutdown() {
while (!session_map_.empty()) {
- QuicServerSessionBase* session = session_map_.begin()->second.get();
+ QuicSession* session = session_map_.begin()->second.get();
session->connection()->CloseConnection(
QUIC_PEER_GOING_AWAY, "Server shutdown imminent",
ConnectionCloseBehavior::SEND_CONNECTION_CLOSE_PACKET);
@@ -654,7 +654,7 @@ void QuicDispatcher::ProcessBufferedChlos(size_t max_connections_to_create) {
if (packets.empty()) {
return;
}
- QuicServerSessionBase* session =
+ QuicSession* session =
CreateQuicSession(connection_id, packets.front().client_address);
DVLOG(1) << "Created new session for " << connection_id;
session_map_.insert(
@@ -751,7 +751,7 @@ void QuicDispatcher::ProcessChlo() {
return;
}
// Creates a new session and process all buffered packets for this connection.
- QuicServerSessionBase* session =
+ QuicSession* session =
CreateQuicSession(current_connection_id_, current_client_address_);
DVLOG(1) << "Created new session for " << current_connection_id_;
session_map_.insert(
@@ -1005,8 +1005,8 @@ const QuicVersionVector& QuicDispatcher::GetSupportedVersions() {
}
void QuicDispatcher::DeliverPacketsToSession(
- const std::list<BufferedPacket>& packets,
- QuicServerSessionBase* session) {
+ const list<BufferedPacket>& packets,
+ QuicSession* session) {
for (const BufferedPacket& packet : packets) {
session->ProcessUdpPacket(packet.server_address, packet.client_address,
*(packet.packet));
« no previous file with comments | « net/tools/quic/quic_dispatcher.h ('k') | net/tools/quic/test_tools/mock_quic_server_session_visitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698