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/core/quic_protocol.h" | 5 #include "net/quic/core/quic_protocol.h" |
6 | 6 |
7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "net/quic/core/quic_flags.h" | 9 #include "net/quic/core/quic_flags.h" |
10 #include "net/quic/core/quic_utils.h" | 10 #include "net/quic/core/quic_utils.h" |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 ack_delay_time(QuicTime::Delta::Infinite()), | 330 ack_delay_time(QuicTime::Delta::Infinite()), |
331 path_id(kDefaultPathId), | 331 path_id(kDefaultPathId), |
332 entropy_hash(0), | 332 entropy_hash(0), |
333 is_truncated(false), | 333 is_truncated(false), |
334 missing(true) {} | 334 missing(true) {} |
335 | 335 |
336 QuicAckFrame::QuicAckFrame(const QuicAckFrame& other) = default; | 336 QuicAckFrame::QuicAckFrame(const QuicAckFrame& other) = default; |
337 | 337 |
338 QuicAckFrame::~QuicAckFrame() {} | 338 QuicAckFrame::~QuicAckFrame() {} |
339 | 339 |
340 QuicRstStreamErrorCode AdjustErrorForVersion(QuicRstStreamErrorCode error_code, | |
341 QuicVersion /*version*/) { | |
342 return error_code; | |
343 } | |
344 | |
345 QuicRstStreamFrame::QuicRstStreamFrame() | 340 QuicRstStreamFrame::QuicRstStreamFrame() |
346 : stream_id(0), error_code(QUIC_STREAM_NO_ERROR), byte_offset(0) {} | 341 : stream_id(0), error_code(QUIC_STREAM_NO_ERROR), byte_offset(0) {} |
347 | 342 |
348 QuicRstStreamFrame::QuicRstStreamFrame(QuicStreamId stream_id, | 343 QuicRstStreamFrame::QuicRstStreamFrame(QuicStreamId stream_id, |
349 QuicRstStreamErrorCode error_code, | 344 QuicRstStreamErrorCode error_code, |
350 QuicStreamOffset bytes_written) | 345 QuicStreamOffset bytes_written) |
351 : stream_id(stream_id), | 346 : stream_id(stream_id), |
352 error_code(error_code), | 347 error_code(error_code), |
353 byte_offset(bytes_written) {} | 348 byte_offset(bytes_written) {} |
354 | 349 |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
852 is_unackable(false), | 847 is_unackable(false), |
853 has_crypto_handshake(has_crypto_handshake), | 848 has_crypto_handshake(has_crypto_handshake), |
854 num_padding_bytes(num_padding_bytes), | 849 num_padding_bytes(num_padding_bytes), |
855 retransmission(0) {} | 850 retransmission(0) {} |
856 | 851 |
857 TransmissionInfo::TransmissionInfo(const TransmissionInfo& other) = default; | 852 TransmissionInfo::TransmissionInfo(const TransmissionInfo& other) = default; |
858 | 853 |
859 TransmissionInfo::~TransmissionInfo() {} | 854 TransmissionInfo::~TransmissionInfo() {} |
860 | 855 |
861 } // namespace net | 856 } // namespace net |
OLD | NEW |