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

Unified Diff: net/quic/core/quic_server_session_base.cc

Issue 2460163002: Refactor QuicServerSessionBase::Visitor (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/quic/core/quic_server_session_base.h ('k') | net/quic/core/quic_server_session_base_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_server_session_base.cc
diff --git a/net/quic/core/quic_server_session_base.cc b/net/quic/core/quic_server_session_base.cc
index 419c105042db9734395ec5beda200514f293ea8f..e0fe1b7b74a2b986cf6c1b5a8c9cd7fc390dcbf4 100644
--- a/net/quic/core/quic_server_session_base.cc
+++ b/net/quic/core/quic_server_session_base.cc
@@ -23,10 +23,9 @@ QuicServerSessionBase::QuicServerSessionBase(
QuicCryptoServerStream::Helper* helper,
const QuicCryptoServerConfig* crypto_config,
QuicCompressedCertsCache* compressed_certs_cache)
- : QuicSpdySession(connection, config),
+ : QuicSpdySession(connection, visitor, config),
crypto_config_(crypto_config),
compressed_certs_cache_(compressed_certs_cache),
- visitor_(visitor),
helper_(helper),
bandwidth_resumption_enabled_(false),
bandwidth_estimate_sent_to_client_(QuicBandwidth::Zero()),
@@ -95,13 +94,6 @@ void QuicServerSessionBase::OnConnectionClosed(QuicErrorCode error,
if (crypto_stream_.get() != nullptr) {
crypto_stream_->CancelOutstandingCallbacks();
}
- visitor_->OnConnectionClosed(connection()->connection_id(), error,
- error_details);
-}
-
-void QuicServerSessionBase::OnWriteBlocked() {
- QuicSession::OnWriteBlocked();
- visitor_->OnWriteBlocked(connection());
}
void QuicServerSessionBase::OnCongestionWindowChange(QuicTime now) {
« no previous file with comments | « net/quic/core/quic_server_session_base.h ('k') | net/quic/core/quic_server_session_base_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698