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

Side by Side Diff: net/quic/core/quic_multipath_sent_packet_manager.h

Issue 2229023002: Track when QUIC connections are application limited. Protected by quic_enable_app_limited_check. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@129327247
Patch Set: git pull upper stream Created 4 years, 4 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
« no previous file with comments | « net/quic/core/quic_flags.cc ('k') | net/quic/core/quic_multipath_sent_packet_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef NET_QUIC_QUIC_MULTIPATH_SENT_PACKET_MANAGER_H_ 5 #ifndef NET_QUIC_QUIC_MULTIPATH_SENT_PACKET_MANAGER_H_
6 #define NET_QUIC_QUIC_MULTIPATH_SENT_PACKET_MANAGER_H_ 6 #define NET_QUIC_QUIC_MULTIPATH_SENT_PACKET_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 void SetNetworkChangeVisitor(NetworkChangeVisitor* visitor) override; 159 void SetNetworkChangeVisitor(NetworkChangeVisitor* visitor) override;
160 160
161 // Returns true if the default path is in slow start. 161 // Returns true if the default path is in slow start.
162 bool InSlowStart() const override; 162 bool InSlowStart() const override;
163 163
164 // These two methods return the consecutive RTO or TLP count of the default 164 // These two methods return the consecutive RTO or TLP count of the default
165 // path. 165 // path.
166 size_t GetConsecutiveRtoCount() const override; 166 size_t GetConsecutiveRtoCount() const override;
167 size_t GetConsecutiveTlpCount() const override; 167 size_t GetConsecutiveTlpCount() const override;
168 168
169 void OnApplicationLimited() override;
170
169 private: 171 private:
170 friend class test::QuicConnectionPeer; 172 friend class test::QuicConnectionPeer;
171 friend class test::QuicMultipathSentPacketManagerPeer; 173 friend class test::QuicMultipathSentPacketManagerPeer;
172 174
173 // State of per path sent packet manager. 175 // State of per path sent packet manager.
174 // TODO(fayang): Need to add a state that path can receive acks but cannot 176 // TODO(fayang): Need to add a state that path can receive acks but cannot
175 // send data. 177 // send data.
176 enum PathSentPacketManagerState { 178 enum PathSentPacketManagerState {
177 ACTIVE, // We both send packets and receiving acks on this path. 179 ACTIVE, // We both send packets and receiving acks on this path.
178 CLOSING, // We stop sending packets and receiving acks on this path. There 180 CLOSING, // We stop sending packets and receiving acks on this path. There
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 213
212 // Does not own this delegate. 214 // Does not own this delegate.
213 QuicConnectionCloseDelegateInterface* delegate_; 215 QuicConnectionCloseDelegateInterface* delegate_;
214 216
215 DISALLOW_COPY_AND_ASSIGN(QuicMultipathSentPacketManager); 217 DISALLOW_COPY_AND_ASSIGN(QuicMultipathSentPacketManager);
216 }; 218 };
217 219
218 } // namespace net 220 } // namespace net
219 221
220 #endif // NET_QUIC_QUIC_MULTIPATH_SENT_PACKET_MANAGER_H_ 222 #endif // NET_QUIC_QUIC_MULTIPATH_SENT_PACKET_MANAGER_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_flags.cc ('k') | net/quic/core/quic_multipath_sent_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698