| 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_flags.h" | 10 #include "net/quic/quic_flags.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 OVERRIDE { | 57 OVERRIDE { |
| 58 session_->OnBlockedFrames(frames); | 58 session_->OnBlockedFrames(frames); |
| 59 session_->PostProcessAfterData(); | 59 session_->PostProcessAfterData(); |
| 60 } | 60 } |
| 61 | 61 |
| 62 virtual void OnCanWrite() OVERRIDE { | 62 virtual void OnCanWrite() OVERRIDE { |
| 63 session_->OnCanWrite(); | 63 session_->OnCanWrite(); |
| 64 session_->PostProcessAfterData(); | 64 session_->PostProcessAfterData(); |
| 65 } | 65 } |
| 66 | 66 |
| 67 virtual void OnCongestionWindowChange(QuicTime now) OVERRIDE { |
| 68 session_->OnCongestionWindowChange(now); |
| 69 } |
| 70 |
| 67 virtual void OnSuccessfulVersionNegotiation( | 71 virtual void OnSuccessfulVersionNegotiation( |
| 68 const QuicVersion& version) OVERRIDE { | 72 const QuicVersion& version) OVERRIDE { |
| 69 session_->OnSuccessfulVersionNegotiation(version); | 73 session_->OnSuccessfulVersionNegotiation(version); |
| 70 } | 74 } |
| 71 | 75 |
| 72 virtual void OnConnectionClosed( | 76 virtual void OnConnectionClosed( |
| 73 QuicErrorCode error, bool from_peer) OVERRIDE { | 77 QuicErrorCode error, bool from_peer) OVERRIDE { |
| 74 session_->OnConnectionClosed(error, from_peer); | 78 session_->OnConnectionClosed(error, from_peer); |
| 75 // The session will go away, so don't bother with cleanup. | 79 // The session will go away, so don't bother with cleanup. |
| 76 } | 80 } |
| (...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 } | 765 } |
| 762 for (DataStreamMap::iterator it = stream_map_.begin(); | 766 for (DataStreamMap::iterator it = stream_map_.begin(); |
| 763 it != stream_map_.end(); ++it) { | 767 it != stream_map_.end(); ++it) { |
| 764 if (version <= QUIC_VERSION_16) { | 768 if (version <= QUIC_VERSION_16) { |
| 765 it->second->flow_controller()->Disable(); | 769 it->second->flow_controller()->Disable(); |
| 766 } | 770 } |
| 767 } | 771 } |
| 768 } | 772 } |
| 769 | 773 |
| 770 } // namespace net | 774 } // namespace net |
| OLD | NEW |