Chromium Code Reviews| 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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 513 os << it->first << "@" << it->second.ToDebuggingValue() << " "; | 513 os << it->first << "@" << it->second.ToDebuggingValue() << " "; |
| 514 } | 514 } |
| 515 os << "]"; | 515 os << "]"; |
| 516 break; | 516 break; |
| 517 } | 517 } |
| 518 case kFixRate: { | 518 case kFixRate: { |
| 519 os << " bitrate_in_bytes_per_second: " | 519 os << " bitrate_in_bytes_per_second: " |
| 520 << congestion_frame.fix_rate.bitrate.ToBytesPerSecond(); | 520 << congestion_frame.fix_rate.bitrate.ToBytesPerSecond(); |
| 521 break; | 521 break; |
| 522 } | 522 } |
| 523 case kTCP: { | 523 case kTCP: |
| 524 case kTCPBBR: { | |
|
Ryan Hamilton
2014/05/16 18:12:17
I think I'd also DFATAL here.
ramant (doing other things)
2014/05/16 18:36:24
Done.
| |
| 524 const CongestionFeedbackMessageTCP& tcp = congestion_frame.tcp; | 525 const CongestionFeedbackMessageTCP& tcp = congestion_frame.tcp; |
| 525 os << " receive_window: " << tcp.receive_window; | 526 os << " receive_window: " << tcp.receive_window; |
| 526 break; | 527 break; |
| 527 } | 528 } |
| 528 } | 529 } |
| 529 return os; | 530 return os; |
| 530 } | 531 } |
| 531 | 532 |
| 532 CongestionFeedbackMessageFixRate::CongestionFeedbackMessageFixRate() | 533 CongestionFeedbackMessageFixRate::CongestionFeedbackMessageFixRate() |
| 533 : bitrate(QuicBandwidth::Zero()) { | 534 : bitrate(QuicBandwidth::Zero()) { |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 791 bytes_written(0) { | 792 bytes_written(0) { |
| 792 } | 793 } |
| 793 | 794 |
| 794 WriteResult::WriteResult(WriteStatus status, | 795 WriteResult::WriteResult(WriteStatus status, |
| 795 int bytes_written_or_error_code) | 796 int bytes_written_or_error_code) |
| 796 : status(status), | 797 : status(status), |
| 797 bytes_written(bytes_written_or_error_code) { | 798 bytes_written(bytes_written_or_error_code) { |
| 798 } | 799 } |
| 799 | 800 |
| 800 } // namespace net | 801 } // namespace net |
| OLD | NEW |