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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 case kFixRate: { | 526 case kFixRate: { |
527 os << " bitrate_in_bytes_per_second: " | 527 os << " bitrate_in_bytes_per_second: " |
528 << congestion_frame.fix_rate.bitrate.ToBytesPerSecond(); | 528 << congestion_frame.fix_rate.bitrate.ToBytesPerSecond(); |
529 break; | 529 break; |
530 } | 530 } |
531 case kTCP: { | 531 case kTCP: { |
532 const CongestionFeedbackMessageTCP& tcp = congestion_frame.tcp; | 532 const CongestionFeedbackMessageTCP& tcp = congestion_frame.tcp; |
533 os << " receive_window: " << tcp.receive_window; | 533 os << " receive_window: " << tcp.receive_window; |
534 break; | 534 break; |
535 } | 535 } |
536 case kTCPBBR: { | |
537 LOG(DFATAL) << "TCPBBR is not yet supported."; | |
538 break; | |
539 } | |
540 } | 536 } |
541 return os; | 537 return os; |
542 } | 538 } |
543 | 539 |
544 CongestionFeedbackMessageFixRate::CongestionFeedbackMessageFixRate() | 540 CongestionFeedbackMessageFixRate::CongestionFeedbackMessageFixRate() |
545 : bitrate(QuicBandwidth::Zero()) { | 541 : bitrate(QuicBandwidth::Zero()) { |
546 } | 542 } |
547 | 543 |
548 QuicGoAwayFrame::QuicGoAwayFrame() | 544 QuicGoAwayFrame::QuicGoAwayFrame() |
549 : error_code(QUIC_NO_ERROR), | 545 : error_code(QUIC_NO_ERROR), |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
784 sent_time(QuicTime::Zero()), | 780 sent_time(QuicTime::Zero()), |
785 bytes_sent(0), | 781 bytes_sent(0), |
786 nack_count(0), | 782 nack_count(0), |
787 transmission_type(transmission_type), | 783 transmission_type(transmission_type), |
788 all_transmissions(all_transmissions), | 784 all_transmissions(all_transmissions), |
789 in_flight(false) { | 785 in_flight(false) { |
790 all_transmissions->insert(sequence_number); | 786 all_transmissions->insert(sequence_number); |
791 } | 787 } |
792 | 788 |
793 } // namespace net | 789 } // namespace net |
OLD | NEW |