OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2016 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 NET_QUIC_QUARTC_QUARTC_CONNECTION_HELPER_H_ |
| 6 #define NET_QUIC_QUARTC_QUARTC_CONNECTION_HELPER_H_ |
| 7 |
| 8 #include "net/quic/core/crypto/quic_random.h" |
| 9 #include "net/quic/core/quic_clock.h" |
| 10 #include "net/quic/core/quic_connection.h" |
| 11 #include "net/quic/core/quic_simple_buffer_allocator.h" |
| 12 |
| 13 namespace net { |
| 14 |
| 15 // This is the helper class for Quartc (QUIC in WebRTC) to create a |
| 16 // QuicConnection. |
| 17 class NET_EXPORT_PRIVATE QuartcConnectionHelper |
| 18 : public QuicConnectionHelperInterface { |
| 19 public: |
| 20 ~QuartcConnectionHelper() override; |
| 21 // QuicConnectionHelperInterface overrides. |
| 22 const QuicClock* GetClock() const override; |
| 23 QuicRandom* GetRandomGenerator() override; |
| 24 QuicBufferAllocator* GetBufferAllocator() override; |
| 25 |
| 26 private: |
| 27 QuicClock clock_; |
| 28 SimpleBufferAllocator buffer_allocator_; |
| 29 }; |
| 30 |
| 31 } // namepace net |
| 32 |
| 33 #endif // NET_QUIC_QUARTC_QUARTC_CONNECTION_HELPER_H_ |
OLD | NEW |