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

Side by Side Diff: net/quic/quic_connection.cc

Issue 651513002: QUIC - Minor formatting changes to keep in sync with internal source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Remove_QuicSentPacketManager_DebugVisitor_76595983
Patch Set: Created 6 years, 2 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
« no previous file with comments | « net/quic/congestion_control/tcp_cubic_sender_test.cc ('k') | no next file » | 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/quic/quic_connection.h" 5 #include "net/quic/quic_connection.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 #include <sys/types.h> 8 #include <sys/types.h>
9
9 #include <algorithm> 10 #include <algorithm>
10 #include <iterator> 11 #include <iterator>
11 #include <limits> 12 #include <limits>
12 #include <memory> 13 #include <memory>
13 #include <set> 14 #include <set>
14 #include <utility> 15 #include <utility>
15 16
16 #include "base/debug/stack_trace.h" 17 #include "base/debug/stack_trace.h"
17 #include "base/logging.h" 18 #include "base/logging.h"
18 #include "base/stl_util.h" 19 #include "base/stl_util.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 private: 156 private:
156 QuicConnection* connection_; 157 QuicConnection* connection_;
157 158
158 DISALLOW_COPY_AND_ASSIGN(PingAlarm); 159 DISALLOW_COPY_AND_ASSIGN(PingAlarm);
159 }; 160 };
160 161
161 } // namespace 162 } // namespace
162 163
163 QuicConnection::QueuedPacket::QueuedPacket(SerializedPacket packet, 164 QuicConnection::QueuedPacket::QueuedPacket(SerializedPacket packet,
164 EncryptionLevel level) 165 EncryptionLevel level)
165 : serialized_packet(packet), 166 : serialized_packet(packet),
166 encryption_level(level), 167 encryption_level(level),
167 transmission_type(NOT_RETRANSMISSION), 168 transmission_type(NOT_RETRANSMISSION),
168 original_sequence_number(0) { 169 original_sequence_number(0) {
169 } 170 }
170 171
171 QuicConnection::QueuedPacket::QueuedPacket( 172 QuicConnection::QueuedPacket::QueuedPacket(
172 SerializedPacket packet, 173 SerializedPacket packet,
173 EncryptionLevel level, 174 EncryptionLevel level,
174 TransmissionType transmission_type, 175 TransmissionType transmission_type,
175 QuicPacketSequenceNumber original_sequence_number) 176 QuicPacketSequenceNumber original_sequence_number)
176 : serialized_packet(packet), 177 : serialized_packet(packet),
177 encryption_level(level), 178 encryption_level(level),
178 transmission_type(transmission_type), 179 transmission_type(transmission_type),
(...skipping 1853 matching lines...) Expand 10 before | Expand all | Expand 10 after
2032 } 2033 }
2033 for (size_t i = 0; i < retransmittable_frames->frames().size(); ++i) { 2034 for (size_t i = 0; i < retransmittable_frames->frames().size(); ++i) {
2034 if (retransmittable_frames->frames()[i].type == CONNECTION_CLOSE_FRAME) { 2035 if (retransmittable_frames->frames()[i].type == CONNECTION_CLOSE_FRAME) {
2035 return true; 2036 return true;
2036 } 2037 }
2037 } 2038 }
2038 return false; 2039 return false;
2039 } 2040 }
2040 2041
2041 } // namespace net 2042 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/congestion_control/tcp_cubic_sender_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698