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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 it->second->OnConnectionClosed(error, from_peer); | 229 it->second->OnConnectionClosed(error, from_peer); |
230 // The stream should call CloseStream as part of OnConnectionClosed. | 230 // The stream should call CloseStream as part of OnConnectionClosed. |
231 if (stream_map_.find(id) != stream_map_.end()) { | 231 if (stream_map_.find(id) != stream_map_.end()) { |
232 LOG(DFATAL) << ENDPOINT | 232 LOG(DFATAL) << ENDPOINT |
233 << "Stream failed to close under OnConnectionClosed"; | 233 << "Stream failed to close under OnConnectionClosed"; |
234 CloseStream(id); | 234 CloseStream(id); |
235 } | 235 } |
236 } | 236 } |
237 } | 237 } |
238 | 238 |
| 239 void QuicSession::OnSuccessfulVersionNegotiation(const QuicVersion& version) { |
| 240 headers_stream_->OnSuccessfulVersionNegotiation(version); |
| 241 } |
| 242 |
239 void QuicSession::OnWindowUpdateFrames( | 243 void QuicSession::OnWindowUpdateFrames( |
240 const vector<QuicWindowUpdateFrame>& frames) { | 244 const vector<QuicWindowUpdateFrame>& frames) { |
241 bool connection_window_updated = false; | 245 bool connection_window_updated = false; |
242 for (size_t i = 0; i < frames.size(); ++i) { | 246 for (size_t i = 0; i < frames.size(); ++i) { |
243 // Stream may be closed by the time we receive a WINDOW_UPDATE, so we can't | 247 // Stream may be closed by the time we receive a WINDOW_UPDATE, so we can't |
244 // assume that it still exists. | 248 // assume that it still exists. |
245 QuicStreamId stream_id = frames[i].stream_id; | 249 QuicStreamId stream_id = frames[i].stream_id; |
246 if (stream_id == kConnectionLevelId) { | 250 if (stream_id == kConnectionLevelId) { |
247 // This is a window update that applies to the connection, rather than an | 251 // This is a window update that applies to the connection, rather than an |
248 // individual stream. | 252 // individual stream. |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 for (DataStreamMap::iterator it = stream_map_.begin(); | 741 for (DataStreamMap::iterator it = stream_map_.begin(); |
738 it != stream_map_.end(); ++it) { | 742 it != stream_map_.end(); ++it) { |
739 if (it->second->flow_controller()->IsBlocked()) { | 743 if (it->second->flow_controller()->IsBlocked()) { |
740 return true; | 744 return true; |
741 } | 745 } |
742 } | 746 } |
743 return false; | 747 return false; |
744 } | 748 } |
745 | 749 |
746 } // namespace net | 750 } // namespace net |
OLD | NEW |