| 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/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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |