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

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

Issue 1048483002: Pass QuicCryptoServerConfig by pointer instead of reference. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/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 448e5ce71d6bfb02c5fa3ca94f4f9cdd8a2ee04b..df18c8396a4df19e0b0f76701ee3c43a07028e8e 100644
--- a/net/tools/quic/quic_dispatcher.cc
+++ b/net/tools/quic/quic_dispatcher.cc
@@ -163,7 +163,7 @@ QuicPacketWriter* QuicDispatcher::PacketWriterFactoryAdapter::Create(
}
QuicDispatcher::QuicDispatcher(const QuicConfig& config,
- const QuicCryptoServerConfig& crypto_config,
+ const QuicCryptoServerConfig* crypto_config,
const QuicVersionVector& supported_versions,
PacketWriterFactory* packet_writer_factory,
QuicConnectionHelperInterface* helper)
@@ -404,10 +404,10 @@ QuicServerSession* QuicDispatcher::CreateQuicSession(
QuicConnection* connection = new QuicConnection(
connection_id, client_address, helper_.get(), connection_writer_factory_,
/* owns_writer= */ true, Perspective::IS_SERVER,
- crypto_config_.HasProofSource(), supported_versions_);
+ crypto_config_->HasProofSource(), supported_versions_);
QuicServerSession* session = new QuicServerSession(config_, connection, this);
- session->InitializeSession(&crypto_config_);
+ session->InitializeSession(crypto_config_);
return session;
}
« 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