| Index: net/quic/quic_p2p_client_session.cc
|
| diff --git a/net/quic/quic_p2p_client_session.cc b/net/quic/quic_p2p_client_session.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..487d19d03021d1b0a90ecb02cacd7b8cc669a0f4
|
| --- /dev/null
|
| +++ b/net/quic/quic_p2p_client_session.cc
|
| @@ -0,0 +1,33 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "net/quic/quic_p2p_client_session.h"
|
| +
|
| +namespace net {
|
| +
|
| +QuicP2PClientSession::QuicP2PClientSession(
|
| + const QuicConfig& config,
|
| + const QuicServerId& server_id,
|
| + QuicCryptoClientConfig* crypto_config,
|
| + QuicConnection* connection,
|
| + QuicP2PSession::Delegate* delegate,
|
| + QuicMessageStream::ReadDelegate* read_delegate)
|
| + : QuicP2PSession(config, connection, delegate, read_delegate),
|
| + crypto_stream_(new QuicCryptoClientStream(server_id,
|
| + this,
|
| + NULL,
|
| + crypto_config)) {}
|
| +
|
| +QuicP2PClientSession::~QuicP2PClientSession() {}
|
| +
|
| +bool QuicP2PClientSession::Connect() {
|
| + DVLOG(1) << "QuicP2PClientSession::Connect()";
|
| + return crypto_stream_->CryptoConnect();
|
| +}
|
| +
|
| +QuicCryptoStream* QuicP2PClientSession::GetCryptoStream() {
|
| + return crypto_stream_.get();
|
| +}
|
| +
|
| +} // namespace net
|
|
|