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

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

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/quic/test_tools/mock_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 380f278f479d56829014011428592a7e214335a1..eb4630d92c63b2be5a9ebf830a4dc422f66b856e 100644
--- a/net/tools/quic/quic_dispatcher.h
+++ b/net/tools/quic/quic_dispatcher.h
@@ -73,7 +73,7 @@ class QuicDispatcher : public QuicServerSessionVisitor,
// of supported QUIC versions. Takes ownership of |packet_writer_factory|,
// which is used to create per-connection writers.
QuicDispatcher(const QuicConfig& config,
- const QuicCryptoServerConfig& crypto_config,
+ const QuicCryptoServerConfig* crypto_config,
const QuicVersionVector& supported_versions,
PacketWriterFactory* packet_writer_factory,
QuicConnectionHelperInterface* helper);
@@ -167,7 +167,9 @@ class QuicDispatcher : public QuicServerSessionVisitor,
const QuicConfig& config() const { return config_; }
- const QuicCryptoServerConfig& crypto_config() const { return crypto_config_; }
+ const QuicCryptoServerConfig* crypto_config() const {
+ return crypto_config_;
+ }
QuicFramer* framer() { return &framer_; }
@@ -210,7 +212,7 @@ class QuicDispatcher : public QuicServerSessionVisitor,
const QuicConfig& config_;
- const QuicCryptoServerConfig& crypto_config_;
+ const QuicCryptoServerConfig* crypto_config_;
// The list of connections waiting to write.
WriteBlockedList write_blocked_list_;
« no previous file with comments | « net/quic/test_tools/mock_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