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

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

Issue 1421853006: Landing Recent QUIC changes until: Fri Oct 30 22:23:58 2015 +0000 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comments Created 5 years, 1 month 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_client_session.h ('k') | net/tools/quic/quic_client_session_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_client_session.cc
diff --git a/net/tools/quic/quic_client_session.cc b/net/tools/quic/quic_client_session.cc
index 1ee832206fd0f1cb2c89f9b393af93aa5600f40d..edba8eda5add899073fa0938c34a1cd4cac135a8 100644
--- a/net/tools/quic/quic_client_session.cc
+++ b/net/tools/quic/quic_client_session.cc
@@ -20,17 +20,18 @@ QuicClientSession::QuicClientSession(const QuicConfig& config,
const QuicServerId& server_id,
QuicCryptoClientConfig* crypto_config)
: QuicClientSessionBase(connection, config),
- crypto_stream_(new QuicCryptoClientStream(
- server_id,
- this,
- new ProofVerifyContextChromium(0, BoundNetLog()),
- crypto_config)),
- respect_goaway_(true) {
-}
+ server_id_(server_id),
+ crypto_config_(crypto_config),
+ respect_goaway_(true) {}
QuicClientSession::~QuicClientSession() {
}
+void QuicClientSession::Initialize() {
+ crypto_stream_.reset(CreateQuicCryptoStream());
+ QuicClientSessionBase::Initialize();
+}
+
void QuicClientSession::OnProofValid(
const QuicCryptoClientConfig::CachedState& /*cached*/) {}
@@ -61,7 +62,7 @@ QuicSpdyClientStream* QuicClientSession::CreateClientStream() {
return new QuicSpdyClientStream(GetNextOutgoingStreamId(), this);
}
-QuicCryptoClientStream* QuicClientSession::GetCryptoStream() {
+QuicCryptoClientStreamBase* QuicClientSession::GetCryptoStream() {
return crypto_stream_.get();
}
@@ -80,5 +81,12 @@ QuicSpdyStream* QuicClientSession::CreateIncomingDynamicStream(
return nullptr;
}
+QuicCryptoClientStreamBase* QuicClientSession::CreateQuicCryptoStream() {
+ return new QuicCryptoClientStream(
+ server_id_, this, new ProofVerifyContextChromium(0, BoundNetLog()),
+ crypto_config_);
+}
+
} // namespace tools
+
} // namespace net
« no previous file with comments | « net/tools/quic/quic_client_session.h ('k') | net/tools/quic/quic_client_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698