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

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

Issue 2569113002: relnote: Allow changing initial flow control window via connection options. Protected by --quic_lar… (Closed)
Patch Set: Created 4 years 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_list.h ('k') | net/quic/core/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_CORE_QUIC_SESSION_H_ 7 #ifndef NET_QUIC_CORE_QUIC_SESSION_H_
8 #define NET_QUIC_CORE_QUIC_SESSION_H_ 8 #define NET_QUIC_CORE_QUIC_SESSION_H_
9 9
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 // Called in OnConfigNegotiated when we receive a new connection level flow 365 // Called in OnConfigNegotiated when we receive a new connection level flow
366 // control window in a negotiated config. Closes the connection if invalid. 366 // control window in a negotiated config. Closes the connection if invalid.
367 void OnNewSessionFlowControlWindow(QuicStreamOffset new_window); 367 void OnNewSessionFlowControlWindow(QuicStreamOffset new_window);
368 368
369 // Debug helper for |OnCanWrite()|, check that OnStreamWrite() makes 369 // Debug helper for |OnCanWrite()|, check that OnStreamWrite() makes
370 // forward progress. Returns false if busy loop detected. 370 // forward progress. Returns false if busy loop detected.
371 bool CheckStreamNotBusyLooping(QuicStream* stream, 371 bool CheckStreamNotBusyLooping(QuicStream* stream,
372 uint64_t previous_bytes_written, 372 uint64_t previous_bytes_written,
373 bool previous_fin_sent); 373 bool previous_fin_sent);
374 374
375 // Called in OnConfigNegotiated for Finch trials to measure performance of
376 // starting with larger flow control receive windows.
377 void AdjustInitialFlowControlWindows(size_t stream_window);
378
375 // Keep track of highest received byte offset of locally closed streams, while 379 // Keep track of highest received byte offset of locally closed streams, while
376 // waiting for a definitive final highest offset from the peer. 380 // waiting for a definitive final highest offset from the peer.
377 std::map<QuicStreamId, QuicStreamOffset> 381 std::map<QuicStreamId, QuicStreamOffset>
378 locally_closed_streams_highest_offset_; 382 locally_closed_streams_highest_offset_;
379 383
380 QuicConnection* connection_; 384 QuicConnection* connection_;
381 385
382 // May be null. 386 // May be null.
383 Visitor* visitor_; 387 Visitor* visitor_;
384 388
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 // The stream id which was last popped in OnCanWrite, or 0, if not under the 439 // The stream id which was last popped in OnCanWrite, or 0, if not under the
436 // call stack of OnCanWrite. 440 // call stack of OnCanWrite.
437 QuicStreamId currently_writing_stream_id_; 441 QuicStreamId currently_writing_stream_id_;
438 442
439 DISALLOW_COPY_AND_ASSIGN(QuicSession); 443 DISALLOW_COPY_AND_ASSIGN(QuicSession);
440 }; 444 };
441 445
442 } // namespace net 446 } // namespace net
443 447
444 #endif // NET_QUIC_CORE_QUIC_SESSION_H_ 448 #endif // NET_QUIC_CORE_QUIC_SESSION_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_flags_list.h ('k') | net/quic/core/quic_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698