| Index: net/quic/quic_p2p_server_session.cc
|
| diff --git a/net/quic/quic_p2p_server_session.cc b/net/quic/quic_p2p_server_session.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..51c2f6ba2ec1341b57b25515fad12e0bb5becb21
|
| --- /dev/null
|
| +++ b/net/quic/quic_p2p_server_session.cc
|
| @@ -0,0 +1,30 @@
|
| +// 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_server_session.h"
|
| +
|
| +namespace net {
|
| +
|
| +QuicP2PServerSession::QuicP2PServerSession(
|
| + const QuicConfig& config,
|
| + QuicCryptoServerConfig* crypto_config,
|
| + QuicConnection* connection,
|
| + QuicP2PSession::Delegate* delegate,
|
| + QuicMessageStream::ReadDelegate* read_delegate)
|
| + : QuicP2PSession(config, connection, delegate, read_delegate),
|
| + crypto_stream_(new QuicCryptoServerStream(*crypto_config, this)) {}
|
| +
|
| +QuicP2PServerSession::~QuicP2PServerSession() {}
|
| +
|
| +bool QuicP2PServerSession::Connect() {
|
| + // Do nothing -- the client will initiate
|
| + DVLOG(1) << "QuicP2PServerSession::Connect()";
|
| + return true;
|
| +}
|
| +
|
| +QuicCryptoStream* QuicP2PServerSession::GetCryptoStream() {
|
| + return crypto_stream_.get();
|
| +}
|
| +
|
| +} // namespace net
|
|
|