Chromium Code Reviews| Index: net/quic/quic_session.h |
| diff --git a/net/quic/quic_session.h b/net/quic/quic_session.h |
| index 4cc32158c5275ee6e778954ba9cd4d705a9eb3a3..06946b729c7d0447d9b7b11e33cb3424a90a9941 100644 |
| --- a/net/quic/quic_session.h |
| +++ b/net/quic/quic_session.h |
| @@ -54,7 +54,6 @@ class NET_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface { |
| }; |
| QuicSession(QuicConnection* connection, |
| - uint32 max_flow_control_receive_window_bytes, |
| const QuicConfig& config); |
|
wtc
2014/06/16 19:35:56
Nit: this may fit on the previous line now.
ramant (doing other things)
2014/06/16 21:13:53
Done.
|
| virtual ~QuicSession(); |
| @@ -205,10 +204,6 @@ class NET_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface { |
| bool is_server() const { return connection_->is_server(); } |
| - uint32 max_flow_control_receive_window_bytes() { |
| - return max_flow_control_receive_window_bytes_; |
| - } |
| - |
| QuicFlowController* flow_controller() { return flow_controller_.get(); } |
| protected: |
| @@ -273,6 +268,14 @@ class NET_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface { |
| void UpdateFlowControlOnFinalReceivedByteOffset( |
| QuicStreamId id, QuicStreamOffset final_byte_offset); |
| + // Called in OnConfigNegotiated when we receive a new stream level flow |
| + // control window in a negotiated config. Closes the connection if invalid. |
| + void OnNewStreamFlowControlWindow(uint32 new_window); |
| + |
| + // Called in OnConfigNegotiated when we receive a new session level flow |
| + // control window in a negotiated config. Closes the connection if invalid. |
| + void OnNewSessionFlowControlWindow(uint32 new_window); |
| + |
| // Keep track of highest received byte offset of locally closed streams, while |
| // waiting for a definitive final highest offset from the peer. |
| std::map<QuicStreamId, QuicStreamOffset> |
| @@ -320,9 +323,6 @@ class NET_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface { |
| // Used for session level flow control. |
| scoped_ptr<QuicFlowController> flow_controller_; |
| - // Initial flow control receive window size for new streams. |
| - uint32 max_flow_control_receive_window_bytes_; |
| - |
| DISALLOW_COPY_AND_ASSIGN(QuicSession); |
| }; |