| 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_SESSION_FACTORY_H_ |
| 5 #define NET_QUIC_QUIC_P2P_SESSION_FACTORY_H_ |
| 6 |
| 7 #include "net/quic/crypto/quic_crypto_client_config.h" |
| 8 #include "net/quic/crypto/quic_crypto_server_config.h" |
| 9 #include "net/quic/quic_connection_helper.h" |
| 10 #include "net/quic/quic_p2p_session.h" |
| 11 |
| 12 namespace net { |
| 13 |
| 14 class NET_EXPORT QuicP2PSessionFactory { |
| 15 public: |
| 16 explicit QuicP2PSessionFactory(QuicConnectionHelperInterface* helper); |
| 17 QuicP2PSession* Create(bool is_server_role, |
| 18 X509Certificate* local_identity, |
| 19 base::StringPiece private_key, |
| 20 HashValue remote_fingerprint, |
| 21 QuicPacketWriter* writer, |
| 22 QuicP2PSession::Delegate* delegate, |
| 23 QuicMessageStream::ReadDelegate* read_delegate); |
| 24 |
| 25 private: |
| 26 QuicConnectionHelperInterface* helper_; |
| 27 QuicCryptoClientConfig client_config_; |
| 28 QuicCryptoServerConfig server_config_; |
| 29 DISALLOW_COPY_AND_ASSIGN(QuicP2PSessionFactory); |
| 30 }; |
| 31 |
| 32 } // namespace net |
| 33 |
| 34 #endif // NET_QUIC_QUIC_P2P_SESSION_FACTORY_H_ |
| OLD | NEW |