| OLD | NEW |
| (Empty) | |
| 1 // Use of this source code is governed by a BSD-style license that can be |
| 2 // found in the LICENSE file. |
| 3 |
| 4 #ifndef NET_QUIC_QUIC_P2P_SERVER_SESSION_H_ |
| 5 #define NET_QUIC_QUIC_P2P_SERVER_SESSION_H_ |
| 6 |
| 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "net/quic/crypto/quic_crypto_server_config.h" |
| 9 #include "net/quic/quic_config.h" |
| 10 #include "net/quic/quic_crypto_server_stream.h" |
| 11 #include "net/quic/quic_message_stream.h" |
| 12 #include "net/quic/quic_p2p_session.h" |
| 13 #include "net/quic/quic_protocol.h" |
| 14 |
| 15 namespace net { |
| 16 |
| 17 class NET_EXPORT QuicP2PServerSession : public QuicP2PSession { |
| 18 public: |
| 19 QuicP2PServerSession(const QuicConfig& config, |
| 20 QuicCryptoServerConfig* crypto_config, |
| 21 QuicConnection* connection, |
| 22 QuicP2PSession::Delegate* delegate, |
| 23 QuicMessageStream::ReadDelegate* read_delegate); |
| 24 virtual ~QuicP2PServerSession(); |
| 25 |
| 26 virtual bool Connect() OVERRIDE; |
| 27 |
| 28 virtual QuicCryptoStream* GetCryptoStream() OVERRIDE; |
| 29 |
| 30 private: |
| 31 scoped_ptr<QuicCryptoServerStream> crypto_stream_; |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(QuicP2PServerSession); |
| 34 }; |
| 35 |
| 36 } // namespace net |
| 37 |
| 38 #endif // NET_QUIC_QUIC_P2P_SERVER_SESSION_H_ |
| OLD | NEW |