| 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_ENDPOINT_H_ |
| 5 #define NET_QUIC_QUIC_P2P_ENDPOINT_H_ |
| 6 |
| 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/strings/string_piece.h" |
| 9 #include "net/cert/x509_certificate.h" |
| 10 #include "net/quic/quic_p2p_session.h" |
| 11 #include "net/quic/quic_protocol.h" |
| 12 |
| 13 namespace net { |
| 14 |
| 15 class QuicConfig; |
| 16 class QuicConnection; |
| 17 class QuicCryptoClientConfig; |
| 18 class QuicCryptoServerConfig; |
| 19 |
| 20 class NET_EXPORT QuicP2PEndpoint { |
| 21 public: |
| 22 QuicP2PEndpoint(bool is_server_role, |
| 23 X509Certificate* local_identity, |
| 24 HashValue remote_fingerprint, |
| 25 QuicConnectionHelperInterface* helper, |
| 26 QuicPacketWriter* writer, |
| 27 QuicMessageStream::ReadDelegate* read_delegate); |
| 28 virtual ~QuicP2PEndpoint(); |
| 29 |
| 30 |
| 31 QuicP2PSession* session() { return session_.get(); } |
| 32 |
| 33 private: |
| 34 QuicConnectionId GenerateConnectionId(); |
| 35 |
| 36 scoped_ptr<QuicConnectionHelper> helper_; |
| 37 QuicConfig config_; |
| 38 scoped_ptr<QuicP2PSession> session_; |
| 39 |
| 40 DISALLOW_COPY_AND_ASSIGN(QuicP2PEndpoint); |
| 41 }; |
| 42 |
| 43 } // namespace net |
| 44 |
| 45 #endif // NET_QUIC_QUIC_P2P_ENDPOINT_H_ |
| OLD | NEW |