Index: net/quic/quartc/quartc_factory.h |
diff --git a/net/quic/quartc/quartc_factory.h b/net/quic/quartc/quartc_factory.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7559385f82ee74b8c9426ddf35dca57a52386d90 |
--- /dev/null |
+++ b/net/quic/quartc/quartc_factory.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_FACTORY_H_ |
+#define NET_QUIC_QUARTC_QUARTC_FACTORY_H_ |
+ |
+#include "net/quic/core/quic_connection.h" |
+#include "net/quic/quartc/quartc_alarm_factory.h" |
+#include "net/quic/quartc/quartc_connection_helper.h" |
+#include "net/quic/quartc/quartc_factory_interface.h" |
+#include "net/quic/quartc/quartc_packet_writer.h" |
+ |
+namespace net { |
+ |
+class QuartcFactory : public QuartcFactoryInterface { |
+ public: |
+ QuartcFactory(); |
+ ~QuartcFactory(); |
+ |
+ std::unique_ptr<QuartcSessionInterface> CreateQuartcSession( |
+ const QuartcConfig& quartc_config) override; |
+ |
+ private: |
+ std::unique_ptr<QuicConnection> CreateQuicConnection( |
+ const QuartcConfig& quartc_config, |
+ Perspective perspective); |
+ |
+ std::unique_ptr<QuartcAlarmFactory> alarm_factory_; |
+ std::unique_ptr<QuicConfig> config_; |
+ std::unique_ptr<QuartcConnectionHelper> helper_; |
+}; |
+} // namepapce net |
+ |
+#endif // NET_QUIC_QUARTC_QUARTC_FACTORY_H_ |