QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 1 | // Copyright (c) 2017 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef QUICHE_QUIC_QUARTC_QUARTC_CONNECTION_HELPER_H_ |
| 6 | #define QUICHE_QUIC_QUARTC_QUARTC_CONNECTION_HELPER_H_ |
| 7 | |
| 8 | #include "net/third_party/quiche/src/quic/core/crypto/quic_random.h" |
| 9 | #include "net/third_party/quiche/src/quic/core/quic_buffer_allocator.h" |
| 10 | #include "net/third_party/quiche/src/quic/core/quic_connection.h" |
| 11 | #include "net/third_party/quiche/src/quic/core/quic_simple_buffer_allocator.h" |
| 12 | #include "net/third_party/quiche/src/quic/platform/api/quic_clock.h" |
| 13 | |
| 14 | namespace quic { |
| 15 | |
| 16 | // Simple implementation of QuicConnectionHelperInterface for Quartc. |
| 17 | class QuartcConnectionHelper : public QuicConnectionHelperInterface { |
| 18 | public: |
| 19 | explicit QuartcConnectionHelper(const QuicClock* clock); |
| 20 | |
| 21 | // QuicConnectionHelperInterface overrides. |
| 22 | const QuicClock* GetClock() const override; |
| 23 | QuicRandom* GetRandomGenerator() override; |
| 24 | QuicBufferAllocator* GetStreamSendBufferAllocator() override; |
| 25 | |
| 26 | private: |
| 27 | const QuicClock* clock_; |
| 28 | SimpleBufferAllocator buffer_allocator_; |
| 29 | }; |
| 30 | |
| 31 | } // namespace quic |
| 32 | |
| 33 | #endif // QUICHE_QUIC_QUARTC_QUARTC_CONNECTION_HELPER_H_ |