Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(327)

Side by Side Diff: net/quic/quic_protocol.cc

Issue 288313003: Land Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src
Patch Set: implemented rch's comments Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 const CongestionFeedbackMessageTCP& tcp = congestion_frame.tcp; 524 const CongestionFeedbackMessageTCP& tcp = congestion_frame.tcp;
525 os << " receive_window: " << tcp.receive_window; 525 os << " receive_window: " << tcp.receive_window;
526 break; 526 break;
527 } 527 }
528 case kTCPBBR: {
529 LOG(DFATAL) << "TCPBBR is not yet supported.";
530 break;
531 }
528 } 532 }
529 return os; 533 return os;
530 } 534 }
531 535
532 CongestionFeedbackMessageFixRate::CongestionFeedbackMessageFixRate() 536 CongestionFeedbackMessageFixRate::CongestionFeedbackMessageFixRate()
533 : bitrate(QuicBandwidth::Zero()) { 537 : bitrate(QuicBandwidth::Zero()) {
534 } 538 }
535 539
536 QuicGoAwayFrame::QuicGoAwayFrame() 540 QuicGoAwayFrame::QuicGoAwayFrame()
537 : error_code(QUIC_NO_ERROR), 541 : error_code(QUIC_NO_ERROR),
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 bytes_written(0) { 795 bytes_written(0) {
792 } 796 }
793 797
794 WriteResult::WriteResult(WriteStatus status, 798 WriteResult::WriteResult(WriteStatus status,
795 int bytes_written_or_error_code) 799 int bytes_written_or_error_code)
796 : status(status), 800 : status(status),
797 bytes_written(bytes_written_or_error_code) { 801 bytes_written(bytes_written_or_error_code) {
798 } 802 }
799 803
800 } // namespace net 804 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698