| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "net/quic/quic_p2p_client_session.h" |
| 6 |
| 7 namespace net { |
| 8 |
| 9 QuicP2PClientSession::QuicP2PClientSession( |
| 10 const QuicConfig& config, |
| 11 const QuicServerId& server_id, |
| 12 QuicCryptoClientConfig* crypto_config, |
| 13 QuicConnection* connection, |
| 14 QuicP2PSession::Delegate* delegate, |
| 15 QuicMessageStream::ReadDelegate* read_delegate) |
| 16 : QuicP2PSession(config, connection, delegate, read_delegate), |
| 17 crypto_stream_(new QuicCryptoClientStream(server_id, |
| 18 this, |
| 19 NULL, |
| 20 crypto_config)) {} |
| 21 |
| 22 QuicP2PClientSession::~QuicP2PClientSession() {} |
| 23 |
| 24 bool QuicP2PClientSession::Connect() { |
| 25 DVLOG(1) << "QuicP2PClientSession::Connect()"; |
| 26 return crypto_stream_->CryptoConnect(); |
| 27 } |
| 28 |
| 29 QuicCryptoStream* QuicP2PClientSession::GetCryptoStream() { |
| 30 return crypto_stream_.get(); |
| 31 } |
| 32 |
| 33 } // namespace net |
| OLD | NEW |