| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/tools/quic/quic_client_session.h" | 5 #include "net/tools/quic/quic_client_session.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "net/quic/crypto/crypto_protocol.h" | 8 #include "net/quic/crypto/crypto_protocol.h" |
| 9 #include "net/quic/quic_server_id.h" | 9 #include "net/quic/quic_server_id.h" |
| 10 #include "net/tools/quic/quic_spdy_client_stream.h" | 10 #include "net/tools/quic/quic_spdy_client_stream.h" |
| 11 | 11 |
| 12 using std::string; | 12 using std::string; |
| 13 | 13 |
| 14 namespace net { | 14 namespace net { |
| 15 namespace tools { | 15 namespace tools { |
| 16 | 16 |
| 17 QuicClientSession::QuicClientSession(const QuicConfig& config, | 17 QuicClientSession::QuicClientSession(const QuicConfig& config, |
| 18 QuicConnection* connection) | 18 QuicConnection* connection, |
| 19 : QuicClientSessionBase(connection, config) { | 19 bool is_secure) |
| 20 : QuicClientSessionBase(connection, config, is_secure) { |
| 20 } | 21 } |
| 21 | 22 |
| 22 QuicClientSession::~QuicClientSession() { | 23 QuicClientSession::~QuicClientSession() { |
| 23 } | 24 } |
| 24 | 25 |
| 25 void QuicClientSession::InitializeSession( | 26 void QuicClientSession::InitializeSession( |
| 26 const QuicServerId& server_id, | 27 const QuicServerId& server_id, |
| 27 QuicCryptoClientConfig* crypto_config) { | 28 QuicCryptoClientConfig* crypto_config) { |
| 28 QuicClientSessionBase::InitializeSession(); | 29 QuicClientSessionBase::InitializeSession(); |
| 29 crypto_stream_.reset( | 30 crypto_stream_.reset( |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 } | 74 } |
| 74 | 75 |
| 75 QuicDataStream* QuicClientSession::CreateIncomingDataStream( | 76 QuicDataStream* QuicClientSession::CreateIncomingDataStream( |
| 76 QuicStreamId id) { | 77 QuicStreamId id) { |
| 77 DLOG(ERROR) << "Server push not supported"; | 78 DLOG(ERROR) << "Server push not supported"; |
| 78 return nullptr; | 79 return nullptr; |
| 79 } | 80 } |
| 80 | 81 |
| 81 } // namespace tools | 82 } // namespace tools |
| 82 } // namespace net | 83 } // namespace net |
| OLD | NEW |