| Index: net/quic/quic_p2p_endpoint.h
|
| diff --git a/net/quic/quic_p2p_endpoint.h b/net/quic/quic_p2p_endpoint.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d37ad4acc1c6d6a1c2c8e2097adf6bea91806cc7
|
| --- /dev/null
|
| +++ b/net/quic/quic_p2p_endpoint.h
|
| @@ -0,0 +1,45 @@
|
| +// 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_ENDPOINT_H_
|
| +#define NET_QUIC_QUIC_P2P_ENDPOINT_H_
|
| +
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "base/strings/string_piece.h"
|
| +#include "net/cert/x509_certificate.h"
|
| +#include "net/quic/quic_p2p_session.h"
|
| +#include "net/quic/quic_protocol.h"
|
| +
|
| +namespace net {
|
| +
|
| +class QuicConfig;
|
| +class QuicConnection;
|
| +class QuicCryptoClientConfig;
|
| +class QuicCryptoServerConfig;
|
| +
|
| +class NET_EXPORT QuicP2PEndpoint {
|
| + public:
|
| + QuicP2PEndpoint(bool is_server_role,
|
| + X509Certificate* local_identity,
|
| + HashValue remote_fingerprint,
|
| + QuicConnectionHelperInterface* helper,
|
| + QuicPacketWriter* writer,
|
| + QuicMessageStream::ReadDelegate* read_delegate);
|
| + virtual ~QuicP2PEndpoint();
|
| +
|
| +
|
| + QuicP2PSession* session() { return session_.get(); }
|
| +
|
| + private:
|
| + QuicConnectionId GenerateConnectionId();
|
| +
|
| + scoped_ptr<QuicConnectionHelper> helper_;
|
| + QuicConfig config_;
|
| + scoped_ptr<QuicP2PSession> session_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(QuicP2PEndpoint);
|
| +};
|
| +
|
| +} // namespace net
|
| +
|
| +#endif // NET_QUIC_QUIC_P2P_ENDPOINT_H_
|
|
|