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 Google-specific helper for QuicConnection which uses | 5 // The Google-specific helper for QuicConnection which uses |
6 // EpollAlarm for alarms, and used an int fd_ for writing data. | 6 // EpollAlarm for alarms, and used an int fd_ for writing data. |
7 | 7 |
8 #ifndef NET_TOOLS_QUIC_QUIC_EPOLL_CONNECTION_HELPER_H_ | 8 #ifndef NET_TOOLS_QUIC_QUIC_EPOLL_CONNECTION_HELPER_H_ |
9 #define NET_TOOLS_QUIC_QUIC_EPOLL_CONNECTION_HELPER_H_ | 9 #define NET_TOOLS_QUIC_QUIC_EPOLL_CONNECTION_HELPER_H_ |
10 | 10 |
11 #include <sys/types.h> | 11 #include <sys/types.h> |
12 #include <set> | 12 #include <set> |
13 | 13 |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "net/quic/quic_connection.h" | 15 #include "net/quic/quic_connection.h" |
16 #include "net/quic/quic_protocol.h" | 16 #include "net/quic/quic_protocol.h" |
17 #include "net/quic/quic_time.h" | 17 #include "net/quic/quic_time.h" |
18 #include "net/tools/quic/quic_epoll_clock.h" | 18 #include "net/tools/quic/quic_epoll_clock.h" |
19 #include "net/tools/quic/quic_packet_writer.h" | 19 #include "net/tools/quic/quic_packet_writer.h" |
20 | 20 |
21 namespace net { | 21 namespace net { |
22 | 22 |
23 class AckAlarm; | |
24 class EpollServer; | 23 class EpollServer; |
25 class QuicRandom; | 24 class QuicRandom; |
| 25 |
| 26 namespace tools { |
| 27 |
| 28 class AckAlarm; |
26 class RetransmissionAlarm; | 29 class RetransmissionAlarm; |
27 class SendAlarm; | 30 class SendAlarm; |
28 class TimeoutAlarm; | 31 class TimeoutAlarm; |
29 | 32 |
30 class QuicEpollConnectionHelper : public QuicConnectionHelperInterface { | 33 class QuicEpollConnectionHelper : public QuicConnectionHelperInterface { |
31 public: | 34 public: |
32 QuicEpollConnectionHelper(int fd, EpollServer* eps); | 35 QuicEpollConnectionHelper(int fd, EpollServer* eps); |
33 QuicEpollConnectionHelper(QuicPacketWriter* writer, EpollServer* eps); | 36 QuicEpollConnectionHelper(QuicPacketWriter* writer, EpollServer* eps); |
34 virtual ~QuicEpollConnectionHelper(); | 37 virtual ~QuicEpollConnectionHelper(); |
35 | 38 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // a delay before sending packets and fires when the packet may be sent. | 73 // a delay before sending packets and fires when the packet may be sent. |
71 scoped_ptr<SendAlarm> send_alarm_; | 74 scoped_ptr<SendAlarm> send_alarm_; |
72 | 75 |
73 QuicConnection* connection_; | 76 QuicConnection* connection_; |
74 const QuicEpollClock clock_; | 77 const QuicEpollClock clock_; |
75 QuicRandom* random_generator_; | 78 QuicRandom* random_generator_; |
76 | 79 |
77 DISALLOW_COPY_AND_ASSIGN(QuicEpollConnectionHelper); | 80 DISALLOW_COPY_AND_ASSIGN(QuicEpollConnectionHelper); |
78 }; | 81 }; |
79 | 82 |
| 83 } // namespace tools |
80 } // namespace net | 84 } // namespace net |
81 | 85 |
82 #endif // NET_TOOLS_QUIC_QUIC_EPOLL_CONNECTION_HELPER_H_ | 86 #endif // NET_TOOLS_QUIC_QUIC_EPOLL_CONNECTION_HELPER_H_ |
OLD | NEW |