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_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 { | |
|
Ryan Hamilton
2016/10/10 19:48:30
class comment, please.
| |
| 17 public: | |
| 18 QuartcFactory(); | |
| 19 ~QuartcFactory() override; | |
| 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_; | |
|
pthatcher2
2016/10/05 22:12:05
This could use a comment also. For example, where
pthatcher2
2016/10/05 22:12:05
Should this be quic_config_ to make it clear that
zhihuang1
2016/10/13 06:22:39
Agreed.
| |
| 31 std::unique_ptr<QuartcConnectionHelper> helper_; | |
|
pthatcher2
2016/10/05 22:12:05
Why do we have the QuartcConnetionHelper owned by
| |
| 32 }; | |
| 33 | |
| 34 } // namepapce net | |
| 35 | |
| 36 #endif // NET_QUIC_QUARTC_QUARTC_FACTORY_H_ | |
| OLD | NEW |