Chromium Code Reviews| 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/quic_session.h" | 5 #include "net/quic/quic_session.h" |
| 6 | 6 |
| 7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
| 8 #include "net/quic/crypto/proof_verifier.h" | 8 #include "net/quic/crypto/proof_verifier.h" |
| 9 #include "net/quic/quic_connection.h" | 9 #include "net/quic/quic_connection.h" |
| 10 #include "net/quic/quic_flow_controller.h" | 10 #include "net/quic/quic_flow_controller.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 95 private: | 95 private: |
| 96 QuicSession* session_; | 96 QuicSession* session_; |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 QuicSession::QuicSession(QuicConnection* connection, const QuicConfig& config) | 99 QuicSession::QuicSession(QuicConnection* connection, const QuicConfig& config) |
| 100 : connection_(connection), | 100 : connection_(connection), |
| 101 visitor_shim_(new VisitorShim(this)), | 101 visitor_shim_(new VisitorShim(this)), |
| 102 config_(config), | 102 config_(config), |
| 103 max_open_streams_(config_.MaxStreamsPerConnection()), | 103 max_open_streams_(config_.MaxStreamsPerConnection()), |
| 104 next_stream_id_(is_server() ? 2 : 5), | 104 next_stream_id_(is_server() ? 2 : 5), |
| 105 write_blocked_streams_(true), | |
|
Ryan Hamilton
2015/03/09 17:46:04
Should this be true or false? seems like false wou
| |
| 105 largest_peer_created_stream_id_(0), | 106 largest_peer_created_stream_id_(0), |
| 106 error_(QUIC_NO_ERROR), | 107 error_(QUIC_NO_ERROR), |
| 107 flow_controller_(new QuicFlowController( | 108 flow_controller_(new QuicFlowController( |
| 108 connection_.get(), | 109 connection_.get(), |
| 109 0, | 110 0, |
| 110 is_server(), | 111 is_server(), |
| 111 kMinimumFlowControlSendWindow, | 112 kMinimumFlowControlSendWindow, |
| 112 config_.GetInitialSessionFlowControlWindowToSend(), | 113 config_.GetInitialSessionFlowControlWindowToSend(), |
| 113 config_.GetInitialSessionFlowControlWindowToSend())), | 114 config_.GetInitialSessionFlowControlWindowToSend())), |
| 114 goaway_received_(false), | 115 goaway_received_(false), |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 742 for (DataStreamMap::iterator it = stream_map_.begin(); | 743 for (DataStreamMap::iterator it = stream_map_.begin(); |
| 743 it != stream_map_.end(); ++it) { | 744 it != stream_map_.end(); ++it) { |
| 744 if (it->second->flow_controller()->IsBlocked()) { | 745 if (it->second->flow_controller()->IsBlocked()) { |
| 745 return true; | 746 return true; |
| 746 } | 747 } |
| 747 } | 748 } |
| 748 return false; | 749 return false; |
| 749 } | 750 } |
| 750 | 751 |
| 751 } // namespace net | 752 } // namespace net |
| OLD | NEW |