| Index: net/quic/quic_p2p_session_factory.h
|
| diff --git a/net/quic/quic_p2p_session_factory.h b/net/quic/quic_p2p_session_factory.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cc5bbf615948db605d0470fa6a8fe910bf66ff26
|
| --- /dev/null
|
| +++ b/net/quic/quic_p2p_session_factory.h
|
| @@ -0,0 +1,34 @@
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef NET_QUIC_QUIC_P2P_SESSION_FACTORY_H_
|
| +#define NET_QUIC_QUIC_P2P_SESSION_FACTORY_H_
|
| +
|
| +#include "net/quic/crypto/quic_crypto_client_config.h"
|
| +#include "net/quic/crypto/quic_crypto_server_config.h"
|
| +#include "net/quic/quic_connection_helper.h"
|
| +#include "net/quic/quic_p2p_session.h"
|
| +
|
| +namespace net {
|
| +
|
| +class NET_EXPORT QuicP2PSessionFactory {
|
| + public:
|
| + explicit QuicP2PSessionFactory(QuicConnectionHelperInterface* helper);
|
| + QuicP2PSession* Create(bool is_server_role,
|
| + X509Certificate* local_identity,
|
| + base::StringPiece private_key,
|
| + HashValue remote_fingerprint,
|
| + QuicPacketWriter* writer,
|
| + QuicP2PSession::Delegate* delegate,
|
| + QuicMessageStream::ReadDelegate* read_delegate);
|
| +
|
| + private:
|
| + QuicConnectionHelperInterface* helper_;
|
| + QuicCryptoClientConfig client_config_;
|
| + QuicCryptoServerConfig server_config_;
|
| + DISALLOW_COPY_AND_ASSIGN(QuicP2PSessionFactory);
|
| +};
|
| +
|
| +} // namespace net
|
| +
|
| +#endif // NET_QUIC_QUIC_P2P_SESSION_FACTORY_H_
|
|
|