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

Unified Diff: net/quic/quic_client_session.cc

Issue 196403002: Move QuicServerInfo management from CachedState to the QuicStreamFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: net/quic/quic_client_session.cc
diff --git a/net/quic/quic_client_session.cc b/net/quic/quic_client_session.cc
index d8d9a19c220f2df7994d0f625fc6f5a8f1935697..0bc6132eb50df7be7114c9f78aef457d94aa2ac5 100644
--- a/net/quic/quic_client_session.cc
+++ b/net/quic/quic_client_session.cc
@@ -13,6 +13,7 @@
#include "base/values.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
+#include "net/quic/crypto/quic_server_info.h"
#include "net/quic/quic_connection_helper.h"
#include "net/quic/quic_crypto_client_stream_factory.h"
#include "net/quic/quic_default_packet_writer.h"
@@ -85,6 +86,7 @@ QuicClientSession::QuicClientSession(
scoped_ptr<DatagramClientSocket> socket,
scoped_ptr<QuicDefaultPacketWriter> writer,
QuicStreamFactory* stream_factory,
+ scoped_ptr<QuicServerInfo> server_info,
QuicCryptoClientStreamFactory* crypto_client_stream_factory,
const string& server_hostname,
const QuicConfig& config,
@@ -108,6 +110,8 @@ QuicClientSession::QuicClientSession(
server_hostname, this, crypto_config) :
new QuicCryptoClientStream(server_hostname, this, crypto_config));
+ crypto_stream_->SetQuicServerInfo(server_info.Pass());
+
connection->set_debug_visitor(&logger_);
// TODO(rch): pass in full host port proxy pair
net_log_.BeginEvent(

Powered by Google App Engine
This is Rietveld 408576698