| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 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 | 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_H_ | 5 #ifndef NET_QUIC_QUARTC_QUARTC_FACTORY_H_ |
| 6 #define NET_QUIC_QUARTC_QUARTC_FACTORY_H_ | 6 #define NET_QUIC_QUARTC_QUARTC_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/at_exit.h" | 8 #include "base/at_exit.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
| 11 #include "net/quic/core/quic_alarm_factory.h" | 11 #include "net/quic/core/quic_alarm_factory.h" |
| 12 #include "net/quic/core/quic_clock.h" | |
| 13 #include "net/quic/core/quic_connection.h" | 12 #include "net/quic/core/quic_connection.h" |
| 14 #include "net/quic/core/quic_simple_buffer_allocator.h" | 13 #include "net/quic/core/quic_simple_buffer_allocator.h" |
| 14 #include "net/quic/platform/api/quic_clock.h" |
| 15 #include "net/quic/quartc/quartc_alarm_factory.h" | 15 #include "net/quic/quartc/quartc_alarm_factory.h" |
| 16 #include "net/quic/quartc/quartc_factory_interface.h" | 16 #include "net/quic/quartc/quartc_factory_interface.h" |
| 17 #include "net/quic/quartc/quartc_packet_writer.h" | 17 #include "net/quic/quartc/quartc_packet_writer.h" |
| 18 #include "net/quic/quartc/quartc_task_runner_interface.h" | 18 #include "net/quic/quartc/quartc_task_runner_interface.h" |
| 19 | 19 |
| 20 namespace net { | 20 namespace net { |
| 21 | 21 |
| 22 // Implements the QuartcFactoryInterface to create the instances of | 22 // Implements the QuartcFactoryInterface to create the instances of |
| 23 // QuartcSessionInterface. Implements the QuicAlarmFactory to create alarms | 23 // QuartcSessionInterface. Implements the QuicAlarmFactory to create alarms |
| 24 // using the QuartcTaskRunner. Implements the QuicConnectionHelperInterface used | 24 // using the QuartcTaskRunner. Implements the QuicConnectionHelperInterface used |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 QuicClock clock_; | 59 QuicClock clock_; |
| 60 SimpleBufferAllocator buffer_allocator_; | 60 SimpleBufferAllocator buffer_allocator_; |
| 61 // An AtExitManager owned by the QuartcFactory to manage the lifetime of | 61 // An AtExitManager owned by the QuartcFactory to manage the lifetime of |
| 62 // Singletons. | 62 // Singletons. |
| 63 std::unique_ptr<base::AtExitManager> at_exit_manager_; | 63 std::unique_ptr<base::AtExitManager> at_exit_manager_; |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } // namespace net | 66 } // namespace net |
| 67 | 67 |
| 68 #endif // NET_QUIC_QUARTC_QUARTC_FACTORY_H_ | 68 #endif // NET_QUIC_QUARTC_QUARTC_FACTORY_H_ |
| OLD | NEW |