Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: net/tools/quic/quic_dispatcher.cc

Issue 13741012: Moving net/tools/quic code to net::tools namspace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/tools/quic/quic_dispatcher.h ('k') | net/tools/quic/quic_epoll_clock.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/tools/quic/quic_dispatcher.h ('k') | net/tools/quic/quic_epoll_clock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698