OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 // The Chrome-specific helper for QuicConnection which uses | 5 // The Chrome-specific helper for QuicConnection which uses |
6 // a TaskRunner for alarms, and uses a DatagramClientSocket for writing data. | 6 // a TaskRunner for alarms, and uses a DatagramClientSocket for writing data. |
7 | 7 |
8 #ifndef NET_QUIC_QUIC_CHROMIUM_ALARM_FACTORY_H_ | 8 #ifndef NET_QUIC_QUIC_CHROMIUM_ALARM_FACTORY_H_ |
9 #define NET_QUIC_QUIC_CHROMIUM_ALARM_FACTORY_H_ | 9 #define NET_QUIC_QUIC_CHROMIUM_ALARM_FACTORY_H_ |
10 | 10 |
11 #include <set> | 11 #include <set> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "net/quic/quic_alarm_factory.h" | 15 #include "net/quic/core/quic_alarm_factory.h" |
16 #include "net/quic/quic_clock.h" | 16 #include "net/quic/core/quic_clock.h" |
17 #include "net/quic/quic_protocol.h" | 17 #include "net/quic/core/quic_protocol.h" |
18 #include "net/quic/quic_time.h" | 18 #include "net/quic/core/quic_time.h" |
19 | 19 |
20 namespace base { | 20 namespace base { |
21 class TaskRunner; | 21 class TaskRunner; |
22 } // namespace base | 22 } // namespace base |
23 | 23 |
24 namespace net { | 24 namespace net { |
25 | 25 |
26 class NET_EXPORT_PRIVATE QuicChromiumAlarmFactory : public QuicAlarmFactory { | 26 class NET_EXPORT_PRIVATE QuicChromiumAlarmFactory : public QuicAlarmFactory { |
27 public: | 27 public: |
28 QuicChromiumAlarmFactory(base::TaskRunner* task_runner, | 28 QuicChromiumAlarmFactory(base::TaskRunner* task_runner, |
(...skipping 10 matching lines...) Expand all Loading... |
39 base::TaskRunner* task_runner_; | 39 base::TaskRunner* task_runner_; |
40 const QuicClock* clock_; | 40 const QuicClock* clock_; |
41 base::WeakPtrFactory<QuicChromiumAlarmFactory> weak_factory_; | 41 base::WeakPtrFactory<QuicChromiumAlarmFactory> weak_factory_; |
42 | 42 |
43 DISALLOW_COPY_AND_ASSIGN(QuicChromiumAlarmFactory); | 43 DISALLOW_COPY_AND_ASSIGN(QuicChromiumAlarmFactory); |
44 }; | 44 }; |
45 | 45 |
46 } // namespace net | 46 } // namespace net |
47 | 47 |
48 #endif // NET_QUIC_QUIC_CHROMIUM_ALARM_FACTORY_H_ | 48 #endif // NET_QUIC_QUIC_CHROMIUM_ALARM_FACTORY_H_ |
OLD | NEW |