| 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_CLIENT_SESSION_H_ |
| 5 #define NET_QUIC_QUIC_P2P_CLIENT_SESSION_H_ |
| 6 |
| 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "net/quic/crypto/quic_crypto_client_config.h" |
| 9 #include "net/quic/quic_config.h" |
| 10 #include "net/quic/quic_crypto_client_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 #include "net/quic/quic_server_id.h" |
| 15 |
| 16 namespace net { |
| 17 |
| 18 class NET_EXPORT QuicP2PClientSession : public QuicP2PSession { |
| 19 public: |
| 20 QuicP2PClientSession(const QuicConfig& config, |
| 21 const QuicServerId& server_id, |
| 22 QuicCryptoClientConfig* crypto_config, |
| 23 QuicConnection* connection, |
| 24 QuicP2PSession::Delegate* delegate, |
| 25 QuicMessageStream::ReadDelegate* read_delegate); |
| 26 virtual ~QuicP2PClientSession(); |
| 27 |
| 28 virtual bool Connect() OVERRIDE; |
| 29 |
| 30 virtual QuicCryptoStream* GetCryptoStream() OVERRIDE; |
| 31 |
| 32 private: |
| 33 scoped_ptr<QuicCryptoClientStream> crypto_stream_; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(QuicP2PClientSession); |
| 36 }; |
| 37 |
| 38 } // namespace net |
| 39 |
| 40 #endif // NET_QUIC_QUIC_P2P_CLIENT_SESSION_H_ |
| OLD | NEW |