Chromium Code Reviews| 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 used to create QuicConnections. | |
|
pthatcher2
2016/10/05 22:12:05
This comment could be a little more descriptive.
zhihuang1
2016/10/13 06:22:39
Merged the QuartcConnectionHelper with QuartcFacto
| |
| 16 class NET_EXPORT_PRIVATE QuartcConnectionHelper | |
| 17 : public QuicConnectionHelperInterface { | |
| 18 public: | |
| 19 ~QuartcConnectionHelper() override; | |
| 20 | |
| 21 // QuicConnectionHelperInterface overrides. | |
| 22 const QuicClock* GetClock() const override; | |
| 23 | |
| 24 QuicRandom* GetRandomGenerator() override; | |
| 25 | |
| 26 QuicBufferAllocator* GetBufferAllocator() override; | |
| 27 | |
| 28 private: | |
| 29 QuicClock clock_; | |
| 30 SimpleBufferAllocator buffer_allocator_; | |
| 31 }; | |
| 32 | |
| 33 } // namepace net | |
| 34 | |
| 35 #endif // NET_QUIC_QUARTC_QUARTC_CONNECTION_HELPER_H_ | |
| OLD | NEW |