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..e74ff74d347814a9275f3c15c67f4b54e05a2b19 |
--- /dev/null |
+++ b/net/quic/quartc/quartc_connection_helper.h |
@@ -0,0 +1,35 @@ |
+// 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 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
|
+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_ |