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

Unified Diff: net/quic/quic_dispatcher.cc

Issue 1028633006: Low-impact. Dispatcher now uses QuicServerSession, not QuicSession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Limit_send_algorithm_max_CWND_88747441
Patch Set: Created 5 years, 9 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/quic/quic_dispatcher.h ('k') | net/tools/quic/quic_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_dispatcher.cc
diff --git a/net/quic/quic_dispatcher.cc b/net/quic/quic_dispatcher.cc
index f6829085bd23101718ca8112a4373c37268edfb9..c40e549045dc9639dc899dd439d9e1fe9c635bfe 100644
--- a/net/quic/quic_dispatcher.cc
+++ b/net/quic/quic_dispatcher.cc
@@ -213,7 +213,7 @@ bool QuicDispatcher::OnUnauthenticatedPublicHeader(
// The session that we have identified as the one to which this packet
// belongs.
- QuicSession* session = nullptr;
+ QuicServerSession* session = nullptr;
QuicConnectionId connection_id = header.connection_id;
SessionMap::iterator it = session_map_.find(connection_id);
if (it == session_map_.end()) {
@@ -260,10 +260,10 @@ bool QuicDispatcher::OnUnauthenticatedPublicHeader(
return false;
}
-QuicSession* QuicDispatcher::AdditionalValidityChecksThenCreateSession(
+QuicServerSession* QuicDispatcher::AdditionalValidityChecksThenCreateSession(
const QuicPacketPublicHeader& header,
QuicConnectionId connection_id) {
- QuicSession* session = CreateQuicSession(
+ QuicServerSession* session = CreateQuicSession(
connection_id, current_server_address_, current_client_address_);
if (session == nullptr) {
@@ -336,7 +336,7 @@ bool QuicDispatcher::HasPendingWrites() const {
void QuicDispatcher::Shutdown() {
while (!session_map_.empty()) {
- QuicSession* session = session_map_.begin()->second;
+ QuicServerSession* session = session_map_.begin()->second;
session->connection()->SendConnectionClose(QUIC_PEER_GOING_AWAY);
// Validate that the session removes itself from the session map on close.
DCHECK(session_map_.empty() || session_map_.begin()->second != session);
@@ -387,11 +387,11 @@ void QuicDispatcher::OnConnectionRemovedFromTimeWaitList(
DVLOG(1) << "Connection " << connection_id << " removed from time wait list.";
}
-QuicSession* QuicDispatcher::CreateQuicSession(
+QuicServerSession* QuicDispatcher::CreateQuicSession(
QuicConnectionId connection_id,
const IPEndPoint& server_address,
const IPEndPoint& client_address) {
- // The QuicSession takes ownership of |connection| below.
+ // The QuicServerSession takes ownership of |connection| below.
QuicConnection* connection = new QuicConnection(
connection_id, client_address, helper_, connection_writer_factory_,
/* owns_writer= */ true, Perspective::IS_SERVER,
« no previous file with comments | « net/quic/quic_dispatcher.h ('k') | net/tools/quic/quic_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698