| 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
|
|
|