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

Side by Side Diff: net/tools/quic/quic_epoll_connection_helper.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_epoll_connection_helper.h ('k') | net/tools/quic/quic_in_memory_cache.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_epoll_connection_helper.h" 5 #include "net/tools/quic/quic_epoll_connection_helper.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <sys/socket.h> 8 #include <sys/socket.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/stl_util.h" 11 #include "base/stl_util.h"
12 #include "net/base/ip_endpoint.h" 12 #include "net/base/ip_endpoint.h"
13 #include "net/quic/crypto/quic_random.h" 13 #include "net/quic/crypto/quic_random.h"
14 #include "net/tools/flip_server/epoll_server.h" 14 #include "net/tools/flip_server/epoll_server.h"
15 #include "net/tools/quic/quic_socket_utils.h" 15 #include "net/tools/quic/quic_socket_utils.h"
16 16
17 namespace net { 17 namespace net {
18 namespace tools {
18 19
19 // This alarm will be scheduled any time a data-bearing packet is sent out. 20 // This alarm will be scheduled any time a data-bearing packet is sent out.
20 // When the alarm goes off, the connection checks to see if the oldest packets 21 // When the alarm goes off, the connection checks to see if the oldest packets
21 // have been acked, and retransmit them if they have not. 22 // have been acked, and retransmit them if they have not.
22 class RetransmissionAlarm : public EpollAlarm { 23 class RetransmissionAlarm : public EpollAlarm {
23 public: 24 public:
24 explicit RetransmissionAlarm(QuicConnection* connection) 25 explicit RetransmissionAlarm(QuicConnection* connection)
25 : connection_(connection) { 26 : connection_(connection) {
26 } 27 }
27 28
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 } 197 }
197 198
198 bool QuicEpollConnectionHelper::IsSendAlarmSet() { 199 bool QuicEpollConnectionHelper::IsSendAlarmSet() {
199 return send_alarm_->registered(); 200 return send_alarm_->registered();
200 } 201 }
201 202
202 void QuicEpollConnectionHelper::UnregisterSendAlarmIfRegistered() { 203 void QuicEpollConnectionHelper::UnregisterSendAlarmIfRegistered() {
203 send_alarm_->UnregisterIfRegistered(); 204 send_alarm_->UnregisterIfRegistered();
204 } 205 }
205 206
207 } // namespace tools
206 } // namespace net 208 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_epoll_connection_helper.h ('k') | net/tools/quic/quic_in_memory_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698