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

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

Issue 839143002: Roll Chrome into Mojo. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase Created 5 years, 11 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_server.cc ('k') | net/tools/quic/quic_spdy_client_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_server_session.h
diff --git a/net/tools/quic/quic_server_session.h b/net/tools/quic/quic_server_session.h
index 81cae1283630acf01e7083b34a9ea6d1667831fe..3b5cff0b3783457ff73a11bcc9345169194db367 100644
--- a/net/tools/quic/quic_server_session.h
+++ b/net/tools/quic/quic_server_session.h
@@ -34,7 +34,7 @@ class QuicServerSessionPeer;
// An interface from the session to the entity owning the session.
// This lets the session notify its owner (the Dispatcher) when the connection
-// is closed or blocked.
+// is closed, blocked, or added/removed from the time-wait list.
class QuicServerSessionVisitor {
public:
virtual ~QuicServerSessionVisitor() {}
@@ -42,6 +42,12 @@ class QuicServerSessionVisitor {
virtual void OnConnectionClosed(QuicConnectionId connection_id,
QuicErrorCode error) = 0;
virtual void OnWriteBlocked(QuicBlockedWriterInterface* blocked_writer) = 0;
+ // Called after the given connection is added to the time-wait list.
+ virtual void OnConnectionAddedToTimeWaitList(QuicConnectionId connection_id) {
+ }
+ // Called after the given connection is removed from the time-wait list.
+ virtual void OnConnectionRemovedFromTimeWaitList(
+ QuicConnectionId connection_id) {}
};
class QuicServerSession : public QuicSession {
« no previous file with comments | « net/tools/quic/quic_server.cc ('k') | net/tools/quic/quic_spdy_client_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698