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

Side by Side Diff: net/quic/quic_session.h

Issue 1327903004: relnote: QUIC bugfix (and test) for setting smaller receive window size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Add_num_connections_101619602
Patch Set: Created 5 years, 3 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/quic_flow_controller.cc ('k') | net/quic/quic_session.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 // A QuicSession, which demuxes a single connection to individual streams. 5 // A QuicSession, which demuxes a single connection to individual streams.
6 6
7 #ifndef NET_QUIC_QUIC_SESSION_H_ 7 #ifndef NET_QUIC_QUIC_SESSION_H_
8 #define NET_QUIC_QUIC_SESSION_H_ 8 #define NET_QUIC_QUIC_SESSION_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 void OnNewStreamFlowControlWindow(QuicStreamOffset new_window); 289 void OnNewStreamFlowControlWindow(QuicStreamOffset new_window);
290 290
291 // Called in OnConfigNegotiated when we receive a new connection level flow 291 // Called in OnConfigNegotiated when we receive a new connection level flow
292 // control window in a negotiated config. Closes the connection if invalid. 292 // control window in a negotiated config. Closes the connection if invalid.
293 void OnNewSessionFlowControlWindow(QuicStreamOffset new_window); 293 void OnNewSessionFlowControlWindow(QuicStreamOffset new_window);
294 294
295 // Called in OnConfigNegotiated when auto-tuning is enabled for flow 295 // Called in OnConfigNegotiated when auto-tuning is enabled for flow
296 // control receive windows. 296 // control receive windows.
297 void EnableAutoTuneReceiveWindow(); 297 void EnableAutoTuneReceiveWindow();
298 298
299 // Called in OnConfigNegotiated for finch trials to measure performance of
300 // starting with smaller flow control receive windows and auto-tuning.
301 void AdjustInitialFlowControlWindows(size_t stream_window);
302
299 // TODO(rtenneti): Temporary while investigating crbug.com/473893 303 // TODO(rtenneti): Temporary while investigating crbug.com/473893
300 void CrashIfInvalid() const; 304 void CrashIfInvalid() const;
301 305
302 // Keep track of highest received byte offset of locally closed streams, while 306 // Keep track of highest received byte offset of locally closed streams, while
303 // waiting for a definitive final highest offset from the peer. 307 // waiting for a definitive final highest offset from the peer.
304 std::map<QuicStreamId, QuicStreamOffset> 308 std::map<QuicStreamId, QuicStreamOffset>
305 locally_closed_streams_highest_offset_; 309 locally_closed_streams_highest_offset_;
306 310
307 scoped_ptr<QuicConnection> connection_; 311 scoped_ptr<QuicConnection> connection_;
308 312
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 Liveness liveness_ = ALIVE; 357 Liveness liveness_ = ALIVE;
354 base::debug::StackTrace stack_trace_; 358 base::debug::StackTrace stack_trace_;
355 #endif 359 #endif
356 360
357 DISALLOW_COPY_AND_ASSIGN(QuicSession); 361 DISALLOW_COPY_AND_ASSIGN(QuicSession);
358 }; 362 };
359 363
360 } // namespace net 364 } // namespace net
361 365
362 #endif // NET_QUIC_QUIC_SESSION_H_ 366 #endif // NET_QUIC_QUIC_SESSION_H_
OLDNEW
« no previous file with comments | « net/quic/quic_flow_controller.cc ('k') | net/quic/quic_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698