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

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

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.cc ('k') | net/tools/quic/quic_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_dispatcher.h
diff --git a/net/tools/quic/quic_dispatcher.h b/net/tools/quic/quic_dispatcher.h
index fb9df23478c4653beb0c8cf52b07b6a3297878df..121794c1ef367672270040c7a2830482d337a942 100644
--- a/net/tools/quic/quic_dispatcher.h
+++ b/net/tools/quic/quic_dispatcher.h
@@ -25,7 +25,7 @@ namespace net {
class EpollServer;
class QuicConfig;
class QuicCryptoServerConfig;
-class QuicSession;
+class QuicServerSession;
namespace tools {
@@ -119,7 +119,7 @@ class QuicDispatcher : public QuicServerSessionVisitor,
void OnConnectionRemovedFromTimeWaitList(
QuicConnectionId connection_id) override;
- typedef base::hash_map<QuicConnectionId, QuicSession*> SessionMap;
+ typedef base::hash_map<QuicConnectionId, QuicServerSession*> SessionMap;
// Deletes all sessions on the closed session list and clears the list.
void DeleteSessions();
@@ -131,9 +131,10 @@ class QuicDispatcher : public QuicServerSessionVisitor,
// returned object.
virtual QuicPacketWriter* CreateWriter(int fd);
- virtual QuicSession* CreateQuicSession(QuicConnectionId connection_id,
- const IPEndPoint& server_address,
- const IPEndPoint& client_address);
+ virtual QuicServerSession* CreateQuicSession(
+ QuicConnectionId connection_id,
+ const IPEndPoint& server_address,
+ const IPEndPoint& client_address);
// Called by |framer_visitor_| when the public header has been parsed.
virtual bool OnUnauthenticatedPublicHeader(
@@ -144,9 +145,9 @@ class QuicDispatcher : public QuicServerSessionVisitor,
// certain simple processing rules. This method may apply validity checks to
// reject stray packets. If the packet appears to be valid, it calls
// CreateQuicSession to create a new session for the packet. Returns the
- // QuicSession that was created, or nullptr if the packet failed the validity
- // checks.
- virtual QuicSession* AdditionalValidityChecksThenCreateSession(
+ // QuicServerSession that was created, or nullptr if the packet failed the
+ // validity checks.
+ virtual QuicServerSession* AdditionalValidityChecksThenCreateSession(
const QuicPacketPublicHeader& header,
QuicConnectionId connection_id);
@@ -233,7 +234,7 @@ class QuicDispatcher : public QuicServerSessionVisitor,
scoped_ptr<DeleteSessionsAlarm> delete_sessions_alarm_;
// The list of closed but not-yet-deleted sessions.
- std::list<QuicSession*> closed_session_list_;
+ std::list<QuicServerSession*> closed_session_list_;
EpollServer* epoll_server_; // Owned by the server.
« no previous file with comments | « net/quic/quic_dispatcher.cc ('k') | net/tools/quic/quic_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698