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

Side by Side Diff: net/quic/congestion_control/tcp_cubic_sender_packets.h

Issue 1811043002: Landing Recent QUIC changes until 2016-03-15 16:26 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add an export clause. Created 4 years, 9 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 // TCP cubic send side congestion algorithm, emulates the behavior of TCP cubic. 5 // TCP cubic send side congestion algorithm, emulates the behavior of TCP cubic.
6 6
7 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_PACKETS_H_ 7 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_PACKETS_H_
8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_PACKETS_H_ 8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_PACKETS_H_
9 9
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 protected: 52 protected:
53 // TcpCubicSenderBase methods 53 // TcpCubicSenderBase methods
54 void SetCongestionWindowFromBandwidthAndRtt(QuicBandwidth bandwidth, 54 void SetCongestionWindowFromBandwidthAndRtt(QuicBandwidth bandwidth,
55 QuicTime::Delta rtt) override; 55 QuicTime::Delta rtt) override;
56 void SetCongestionWindowInPackets(QuicPacketCount congestion_window) override; 56 void SetCongestionWindowInPackets(QuicPacketCount congestion_window) override;
57 void SetMinCongestionWindowInPackets( 57 void SetMinCongestionWindowInPackets(
58 QuicPacketCount congestion_window) override; 58 QuicPacketCount congestion_window) override;
59 void ExitSlowstart() override; 59 void ExitSlowstart() override;
60 void OnPacketLost(QuicPacketNumber largest_loss, 60 void OnPacketLost(QuicPacketNumber largest_loss,
61 QuicByteCount lost_bytes,
61 QuicByteCount bytes_in_flight) override; 62 QuicByteCount bytes_in_flight) override;
62 void MaybeIncreaseCwnd(QuicPacketNumber acked_packet_number, 63 void MaybeIncreaseCwnd(QuicPacketNumber acked_packet_number,
63 QuicByteCount acked_bytes, 64 QuicByteCount acked_bytes,
64 QuicByteCount bytes_in_flight) override; 65 QuicByteCount bytes_in_flight) override;
65 void HandleRetransmissionTimeout() override; 66 void HandleRetransmissionTimeout() override;
66 67
67 private: 68 private:
68 friend class test::TcpCubicSenderPacketsPeer; 69 friend class test::TcpCubicSenderPacketsPeer;
69 70
70 Cubic cubic_; 71 Cubic cubic_;
(...skipping 20 matching lines...) Expand all
91 // Initial maximum TCP congestion window. This variable can only be set when 92 // Initial maximum TCP congestion window. This variable can only be set when
92 // this algorithm is created. 93 // this algorithm is created.
93 const QuicPacketCount initial_max_tcp_congestion_window_; 94 const QuicPacketCount initial_max_tcp_congestion_window_;
94 95
95 DISALLOW_COPY_AND_ASSIGN(TcpCubicSenderPackets); 96 DISALLOW_COPY_AND_ASSIGN(TcpCubicSenderPackets);
96 }; 97 };
97 98
98 } // namespace net 99 } // namespace net
99 100
100 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ 101 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/tcp_cubic_sender_bytes_test.cc ('k') | net/quic/congestion_control/tcp_cubic_sender_packets.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698