| Index: net/quic/quartc/quartc_connection_helper.h
|
| diff --git a/net/quic/quartc/quartc_connection_helper.h b/net/quic/quartc/quartc_connection_helper.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3c4e7280bc674ef8a69a1c0c7c62d70f9882a44a
|
| --- /dev/null
|
| +++ b/net/quic/quartc/quartc_connection_helper.h
|
| @@ -0,0 +1,33 @@
|
| +// Copyright (c) 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef NET_QUIC_QUARTC_QUARTC_CONNECTION_HELPER_H_
|
| +#define NET_QUIC_QUARTC_QUARTC_CONNECTION_HELPER_H_
|
| +
|
| +#include "net/quic/core/crypto/quic_random.h"
|
| +#include "net/quic/core/quic_clock.h"
|
| +#include "net/quic/core/quic_connection.h"
|
| +#include "net/quic/core/quic_simple_buffer_allocator.h"
|
| +
|
| +namespace net {
|
| +
|
| +// This is the helper class for Quartc (QUIC in WebRTC) to create a
|
| +// QuicConnection.
|
| +class NET_EXPORT_PRIVATE QuartcConnectionHelper
|
| + : public QuicConnectionHelperInterface {
|
| + public:
|
| + ~QuartcConnectionHelper() override;
|
| + // QuicConnectionHelperInterface overrides.
|
| + const QuicClock* GetClock() const override;
|
| + QuicRandom* GetRandomGenerator() override;
|
| + QuicBufferAllocator* GetBufferAllocator() override;
|
| +
|
| + private:
|
| + QuicClock clock_;
|
| + SimpleBufferAllocator buffer_allocator_;
|
| +};
|
| +
|
| +} // namepace net
|
| +
|
| +#endif // NET_QUIC_QUARTC_QUARTC_CONNECTION_HELPER_H_
|
|
|