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

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

Issue 1009543004: Create a Perspective enum to use instead of a bool is_server to improve (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added NET_EXPORT_PRIVATE to fix compiler error Created 5 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 5 // TCP cubic send side congestion algorithm, emulates the behavior of
6 // TCP cubic. 6 // TCP cubic.
7 7
8 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ 8 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_
9 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ 9 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_
10 10
(...skipping 22 matching lines...) Expand all
33 public: 33 public:
34 TcpCubicSender(const QuicClock* clock, 34 TcpCubicSender(const QuicClock* clock,
35 const RttStats* rtt_stats, 35 const RttStats* rtt_stats,
36 bool reno, 36 bool reno,
37 QuicPacketCount initial_tcp_congestion_window, 37 QuicPacketCount initial_tcp_congestion_window,
38 QuicConnectionStats* stats); 38 QuicConnectionStats* stats);
39 ~TcpCubicSender() override; 39 ~TcpCubicSender() override;
40 40
41 // Start implementation of SendAlgorithmInterface. 41 // Start implementation of SendAlgorithmInterface.
42 void SetFromConfig(const QuicConfig& config, 42 void SetFromConfig(const QuicConfig& config,
43 bool is_server, 43 Perspective perspective,
44 bool using_pacing) override; 44 bool using_pacing) override;
45 bool ResumeConnectionState( 45 bool ResumeConnectionState(
46 const CachedNetworkParameters& cached_network_params) override; 46 const CachedNetworkParameters& cached_network_params) override;
47 void SetNumEmulatedConnections(int num_connections) override; 47 void SetNumEmulatedConnections(int num_connections) override;
48 void OnCongestionEvent(bool rtt_updated, 48 void OnCongestionEvent(bool rtt_updated,
49 QuicByteCount bytes_in_flight, 49 QuicByteCount bytes_in_flight,
50 const CongestionVector& acked_packets, 50 const CongestionVector& acked_packets,
51 const CongestionVector& lost_packets) override; 51 const CongestionVector& lost_packets) override;
52 bool OnPacketSent(QuicTime sent_time, 52 bool OnPacketSent(QuicTime sent_time,
53 QuicByteCount bytes_in_flight, 53 QuicByteCount bytes_in_flight,
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 bool last_cutback_exited_slowstart_; 122 bool last_cutback_exited_slowstart_;
123 123
124 const QuicClock* clock_; 124 const QuicClock* clock_;
125 125
126 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); 126 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender);
127 }; 127 };
128 128
129 } // namespace net 129 } // namespace net
130 130
131 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ 131 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/send_algorithm_interface.h ('k') | net/quic/congestion_control/tcp_cubic_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698