| 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_protocol.h" | 5 #include "net/quic/quic_protocol.h" |
| 6 | 6 |
| 7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
| 8 #include "net/quic/quic_utils.h" | 8 #include "net/quic/quic_utils.h" |
| 9 | 9 |
| 10 using base::StringPiece; | 10 using base::StringPiece; |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 | 248 |
| 249 QuicAckFrame::~QuicAckFrame() {} | 249 QuicAckFrame::~QuicAckFrame() {} |
| 250 | 250 |
| 251 QuicRstStreamErrorCode AdjustErrorForVersion( | 251 QuicRstStreamErrorCode AdjustErrorForVersion( |
| 252 QuicRstStreamErrorCode error_code, | 252 QuicRstStreamErrorCode error_code, |
| 253 QuicVersion version) { | 253 QuicVersion version) { |
| 254 return error_code; | 254 return error_code; |
| 255 } | 255 } |
| 256 | 256 |
| 257 QuicRstStreamFrame::QuicRstStreamFrame() | 257 QuicRstStreamFrame::QuicRstStreamFrame() |
| 258 : stream_id(0), | 258 : stream_id(0), error_code(QUIC_STREAM_NO_ERROR), byte_offset(0) {} |
| 259 error_code(QUIC_STREAM_NO_ERROR) { | |
| 260 } | |
| 261 | 259 |
| 262 QuicRstStreamFrame::QuicRstStreamFrame(QuicStreamId stream_id, | 260 QuicRstStreamFrame::QuicRstStreamFrame(QuicStreamId stream_id, |
| 263 QuicRstStreamErrorCode error_code, | 261 QuicRstStreamErrorCode error_code, |
| 264 QuicStreamOffset bytes_written) | 262 QuicStreamOffset bytes_written) |
| 265 : stream_id(stream_id), | 263 : stream_id(stream_id), |
| 266 error_code(error_code), | 264 error_code(error_code), |
| 267 byte_offset(bytes_written) { | 265 byte_offset(bytes_written) { |
| 268 DCHECK_LE(error_code, numeric_limits<uint8>::max()); | 266 DCHECK_LE(error_code, numeric_limits<uint8>::max()); |
| 269 } | 267 } |
| 270 | 268 |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 bytes_sent(bytes_sent), | 685 bytes_sent(bytes_sent), |
| 688 nack_count(0), | 686 nack_count(0), |
| 689 transmission_type(transmission_type), | 687 transmission_type(transmission_type), |
| 690 all_transmissions(nullptr), | 688 all_transmissions(nullptr), |
| 691 in_flight(false), | 689 in_flight(false), |
| 692 is_unackable(false), | 690 is_unackable(false), |
| 693 is_fec_packet(is_fec_packet) { | 691 is_fec_packet(is_fec_packet) { |
| 694 } | 692 } |
| 695 | 693 |
| 696 } // namespace net | 694 } // namespace net |
| OLD | NEW |