| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |