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

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

Issue 1037643002: Land Recent QUIC Changes until 03/22/2015. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: deleted duplicated using statements in net/tools/quic/test_tools/quic_test_utils.cc 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/tools/quic/quic_dispatcher.h ('k') | net/tools/quic/quic_dispatcher_test.cc » ('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 b36f6ccb21f3a590279a472f3a0139dd07418aff..eb8f18a754ff5072343da8b022eacbf8e365d184 100644
--- a/net/tools/quic/quic_dispatcher.cc
+++ b/net/tools/quic/quic_dispatcher.cc
@@ -224,7 +224,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()) {
@@ -271,10 +271,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) {
@@ -347,7 +347,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);
@@ -405,11 +405,11 @@ QuicPacketWriter* QuicDispatcher::CreateWriter(int fd) {
return new QuicDefaultPacketWriter(fd);
}
-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_.get(), connection_writer_factory_,
/* owns_writer= */ true, Perspective::IS_SERVER,
« no previous file with comments | « net/tools/quic/quic_dispatcher.h ('k') | net/tools/quic/quic_dispatcher_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698