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 #include "net/tools/quic/quic_dispatcher.h" | 5 #include "net/tools/quic/quic_dispatcher.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
11 #include "net/quic/quic_blocked_writer_interface.h" | 11 #include "net/quic/quic_blocked_writer_interface.h" |
12 #include "net/quic/quic_utils.h" | 12 #include "net/quic/quic_utils.h" |
13 #include "net/tools/quic/quic_epoll_connection_helper.h" | 13 #include "net/tools/quic/quic_epoll_connection_helper.h" |
14 #include "net/tools/quic/quic_socket_utils.h" | 14 #include "net/tools/quic/quic_socket_utils.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
| 17 namespace tools { |
17 | 18 |
18 using std::make_pair; | 19 using std::make_pair; |
19 | 20 |
20 class DeleteSessionsAlarm : public EpollAlarm { | 21 class DeleteSessionsAlarm : public EpollAlarm { |
21 public: | 22 public: |
22 explicit DeleteSessionsAlarm(QuicDispatcher* dispatcher) | 23 explicit DeleteSessionsAlarm(QuicDispatcher* dispatcher) |
23 : dispatcher_(dispatcher) { | 24 : dispatcher_(dispatcher) { |
24 } | 25 } |
25 | 26 |
26 virtual int64 OnAlarm() { | 27 virtual int64 OnAlarm() { |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 QuicGuid guid, | 173 QuicGuid guid, |
173 const IPEndPoint& client_address, | 174 const IPEndPoint& client_address, |
174 int fd, | 175 int fd, |
175 EpollServer* epoll_server) { | 176 EpollServer* epoll_server) { |
176 QuicConnectionHelperInterface* helper = | 177 QuicConnectionHelperInterface* helper = |
177 new QuicEpollConnectionHelper(this, epoll_server); | 178 new QuicEpollConnectionHelper(this, epoll_server); |
178 return new QuicServerSession( | 179 return new QuicServerSession( |
179 new QuicConnection(guid, client_address, helper, true), this); | 180 new QuicConnection(guid, client_address, helper, true), this); |
180 } | 181 } |
181 | 182 |
| 183 } // namespace tools |
182 } // namespace net | 184 } // namespace net |
183 | 185 |
184 | 186 |
OLD | NEW |