OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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_ALARM_FACTORY_H_ |
| 6 #define NET_QUIC_QUARTC_QUARTC_ALARM_FACTORY_H_ |
| 7 |
| 8 #include <utility> |
| 9 |
| 10 #include "net/quic/core/quic_alarm_factory.h" |
| 11 #include "net/quic/core/quic_clock.h" |
| 12 |
| 13 namespace base { |
| 14 class TaskRunner; |
| 15 } // namespace base |
| 16 |
| 17 namespace net { |
| 18 class NET_EXPORT_PRIVATE QuartcAlarmFactory : public QuicAlarmFactory { |
| 19 public: |
| 20 QuartcAlarmFactory(base::TaskRunner* task_runner, const QuicClock* clock); |
| 21 ~QuartcAlarmFactory() override; |
| 22 QuicAlarm* CreateAlarm(QuicAlarm::Delegate* delegate) override; |
| 23 QuicArenaScopedPtr<QuicAlarm> CreateAlarm( |
| 24 QuicArenaScopedPtr<QuicAlarm::Delegate> delegate, |
| 25 QuicConnectionArena* arena) override; |
| 26 |
| 27 private: |
| 28 base::TaskRunner* task_runner_; |
| 29 const QuicClock* clock_; |
| 30 // QuartcAlarmFactoryObserver* factory_observer_ = nullptr; |
| 31 DISALLOW_COPY_AND_ASSIGN(QuartcAlarmFactory); |
| 32 }; |
| 33 } // namespace net |
| 34 |
| 35 #endif // NET_QUIC_QUARTC_QUARTC_ALARM_FACTORY_H_ |
OLD | NEW |