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

Side by Side Diff: net/quic/core/quic_stream.cc

Issue 2808273006: Landing Recent QUIC changes until Sun Apr 9 16:12:55 (Closed)
Patch Set: increment enabled_options in e2e test Created 3 years, 8 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_session.cc ('k') | net/quic/core/quic_utils.h » ('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 #include "net/quic/core/quic_stream.h" 5 #include "net/quic/core/quic_stream.h"
6 6
7 #include "net/quic/core/quic_flow_controller.h" 7 #include "net/quic/core/quic_flow_controller.h"
8 #include "net/quic/core/quic_session.h" 8 #include "net/quic/core/quic_session.h"
9 #include "net/quic/platform/api/quic_bug_tracker.h" 9 #include "net/quic/platform/api/quic_bug_tracker.h"
10 #include "net/quic/platform/api/quic_logging.h" 10 #include "net/quic/platform/api/quic_logging.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 fin_received_(false), 63 fin_received_(false),
64 rst_sent_(false), 64 rst_sent_(false),
65 rst_received_(false), 65 rst_received_(false),
66 perspective_(session_->perspective()), 66 perspective_(session_->perspective()),
67 flow_controller_(session_->connection(), 67 flow_controller_(session_->connection(),
68 id_, 68 id_,
69 perspective_, 69 perspective_,
70 GetReceivedFlowControlWindow(session), 70 GetReceivedFlowControlWindow(session),
71 GetInitialStreamFlowControlWindowToSend(session), 71 GetInitialStreamFlowControlWindowToSend(session),
72 session_->flow_controller()->auto_tune_receive_window(), 72 session_->flow_controller()->auto_tune_receive_window(),
73 session_->flow_control_invariant() 73 session_->flow_controller()),
74 ? session_->flow_controller()
75 : nullptr),
76 connection_flow_controller_(session_->flow_controller()), 74 connection_flow_controller_(session_->flow_controller()),
77 stream_contributes_to_connection_flow_control_(true), 75 stream_contributes_to_connection_flow_control_(true),
78 busy_counter_(0) { 76 busy_counter_(0) {
79 SetFromConfig(); 77 SetFromConfig();
80 } 78 }
81 79
82 QuicStream::~QuicStream() {} 80 QuicStream::~QuicStream() {}
83 81
84 void QuicStream::SetFromConfig() {} 82 void QuicStream::SetFromConfig() {}
85 83
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 } 477 }
480 } 478 }
481 479
482 void QuicStream::UpdateSendWindowOffset(QuicStreamOffset new_window) { 480 void QuicStream::UpdateSendWindowOffset(QuicStreamOffset new_window) {
483 if (flow_controller_.UpdateSendWindowOffset(new_window)) { 481 if (flow_controller_.UpdateSendWindowOffset(new_window)) {
484 OnCanWrite(); 482 OnCanWrite();
485 } 483 }
486 } 484 }
487 485
488 } // namespace net 486 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_session.cc ('k') | net/quic/core/quic_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698