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

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

Issue 182523002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed rch's comments in Patch set 1 of CL 181463007 Created 6 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 | Annotate | Revision Log
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 // The pure virtual class for send side congestion control algorithm. 5 // The pure virtual class for send side congestion control algorithm.
6 6
7 #ifndef NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_ 7 #ifndef NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_
8 #define NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_ 8 #define NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_
9 9
10 #include <algorithm> 10 #include <algorithm>
11 #include <map> 11 #include <map>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "net/base/net_export.h" 14 #include "net/base/net_export.h"
15 #include "net/quic/quic_bandwidth.h" 15 #include "net/quic/quic_bandwidth.h"
16 #include "net/quic/quic_clock.h" 16 #include "net/quic/quic_clock.h"
17 #include "net/quic/quic_config.h" 17 #include "net/quic/quic_config.h"
18 #include "net/quic/quic_connection_stats.h"
18 #include "net/quic/quic_protocol.h" 19 #include "net/quic/quic_protocol.h"
19 #include "net/quic/quic_time.h" 20 #include "net/quic/quic_time.h"
20 21
21 namespace net { 22 namespace net {
22 23
23 class NET_EXPORT_PRIVATE SendAlgorithmInterface { 24 class NET_EXPORT_PRIVATE SendAlgorithmInterface {
24 public: 25 public:
25 static SendAlgorithmInterface* Create(const QuicClock* clock, 26 static SendAlgorithmInterface* Create(const QuicClock* clock,
26 CongestionFeedbackType type); 27 CongestionFeedbackType type,
28 QuicConnectionStats* stats);
27 29
28 virtual ~SendAlgorithmInterface() {} 30 virtual ~SendAlgorithmInterface() {}
29 31
30 virtual void SetFromConfig(const QuicConfig& config, bool is_server) = 0; 32 virtual void SetFromConfig(const QuicConfig& config, bool is_server) = 0;
31 33
32 // Called when we receive congestion feedback from remote peer. 34 // Called when we receive congestion feedback from remote peer.
33 virtual void OnIncomingQuicCongestionFeedbackFrame( 35 virtual void OnIncomingQuicCongestionFeedbackFrame(
34 const QuicCongestionFeedbackFrame& feedback, 36 const QuicCongestionFeedbackFrame& feedback,
35 QuicTime feedback_receive_time) = 0; 37 QuicTime feedback_receive_time) = 0;
36 38
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 88
87 // Returns the size of the current congestion window in bytes. Note, this is 89 // Returns the size of the current congestion window in bytes. Note, this is
88 // not the *available* window. Some send algorithms may not use a congestion 90 // not the *available* window. Some send algorithms may not use a congestion
89 // window and will return 0. 91 // window and will return 0.
90 virtual QuicByteCount GetCongestionWindow() const = 0; 92 virtual QuicByteCount GetCongestionWindow() const = 0;
91 }; 93 };
92 94
93 } // namespace net 95 } // namespace net
94 96
95 #endif // NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_ 97 #endif // NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_INTERFACE_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/loss_detection_interface.h ('k') | net/quic/congestion_control/send_algorithm_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698