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_FACTORY_H_ |
| 6 #define NET_QUIC_QUARTC_QUARTC_FACTORY_H_ |
| 7 |
| 8 #include "net/quic/core/quic_connection.h" |
| 9 #include "net/quic/quartc/quartc_alarm_factory.h" |
| 10 #include "net/quic/quartc/quartc_connection_helper.h" |
| 11 #include "net/quic/quartc/quartc_factory_interface.h" |
| 12 #include "net/quic/quartc/quartc_packet_writer.h" |
| 13 |
| 14 namespace net { |
| 15 |
| 16 class QuartcFactory : public QuartcFactoryInterface { |
| 17 public: |
| 18 QuartcFactory(); |
| 19 ~QuartcFactory(); |
| 20 |
| 21 std::unique_ptr<QuartcSessionInterface> CreateQuartcSession( |
| 22 const QuartcConfig& quartc_config) override; |
| 23 |
| 24 private: |
| 25 std::unique_ptr<QuicConnection> CreateQuicConnection( |
| 26 const QuartcConfig& quartc_config, |
| 27 Perspective perspective); |
| 28 |
| 29 std::unique_ptr<QuartcAlarmFactory> alarm_factory_; |
| 30 std::unique_ptr<QuicConfig> config_; |
| 31 std::unique_ptr<QuartcConnectionHelper> helper_; |
| 32 }; |
| 33 } // namepapce net |
| 34 |
| 35 #endif // NET_QUIC_QUARTC_QUARTC_FACTORY_H_ |
OLD | NEW |