OLD | NEW |
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_QUIC_QUARTC_QUARTC_FACTORY_INTERFACE_H_ | 5 #ifndef NET_QUIC_QUARTC_QUARTC_FACTORY_INTERFACE_H_ |
6 #define NET_QUIC_QUARTC_QUARTC_FACTORY_INTERFACE_H_ | 6 #define NET_QUIC_QUARTC_QUARTC_FACTORY_INTERFACE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
| 13 #include "net/quic/platform/api/quic_export.h" |
13 #include "net/quic/quartc/quartc_clock_interface.h" | 14 #include "net/quic/quartc/quartc_clock_interface.h" |
14 #include "net/quic/quartc/quartc_session_interface.h" | 15 #include "net/quic/quartc/quartc_session_interface.h" |
15 #include "net/quic/quartc/quartc_task_runner_interface.h" | 16 #include "net/quic/quartc/quartc_task_runner_interface.h" |
16 | 17 |
17 namespace net { | 18 namespace net { |
18 | 19 |
19 // Algorithm to use for congestion control. | 20 // Algorithm to use for congestion control. |
20 enum class QuartcCongestionControl { | 21 enum class QuartcCongestionControl { |
21 kDefault, // Use an arbitrary algorithm chosen by QUIC. | 22 kDefault, // Use an arbitrary algorithm chosen by QUIC. |
22 kBBR, // Use BBR. | 23 kBBR, // Use BBR. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 bool create_at_exit_manager = true; | 69 bool create_at_exit_manager = true; |
69 }; | 70 }; |
70 | 71 |
71 // Creates a new instance of QuartcFactoryInterface. | 72 // Creates a new instance of QuartcFactoryInterface. |
72 std::unique_ptr<QuartcFactoryInterface> CreateQuartcFactory( | 73 std::unique_ptr<QuartcFactoryInterface> CreateQuartcFactory( |
73 const QuartcFactoryConfig& factory_config); | 74 const QuartcFactoryConfig& factory_config); |
74 | 75 |
75 } // namespace net | 76 } // namespace net |
76 | 77 |
77 #endif // NET_QUIC_QUARTC_QUARTC_FACTORY_INTERFACE_H_ | 78 #endif // NET_QUIC_QUARTC_QUARTC_FACTORY_INTERFACE_H_ |
OLD | NEW |