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_headers_stream.h" | 10 #include "net/quic/quic_headers_stream.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 virtual void OnSuccessfulVersionNegotiation( | 58 virtual void OnSuccessfulVersionNegotiation( |
59 const QuicVersion& version) OVERRIDE { | 59 const QuicVersion& version) OVERRIDE { |
60 session_->OnSuccessfulVersionNegotiation(version); | 60 session_->OnSuccessfulVersionNegotiation(version); |
61 } | 61 } |
62 | 62 |
63 virtual void OnConfigNegotiated() OVERRIDE { | 63 virtual void OnConfigNegotiated() OVERRIDE { |
64 session_->OnConfigNegotiated(); | 64 session_->OnConfigNegotiated(); |
65 } | 65 } |
66 | 66 |
67 virtual void OnConnectionClosed(QuicErrorCode error, | 67 virtual void OnConnectionClosed( |
68 bool from_peer) OVERRIDE { | 68 QuicErrorCode error, bool from_peer) OVERRIDE { |
69 session_->OnConnectionClosed(error, from_peer); | 69 session_->OnConnectionClosed(error, from_peer); |
70 // The session will go away, so don't bother with cleanup. | 70 // The session will go away, so don't bother with cleanup. |
71 } | 71 } |
72 | 72 |
| 73 virtual void OnWriteBlocked() OVERRIDE { |
| 74 session_->OnWriteBlocked(); |
| 75 } |
| 76 |
73 virtual bool HasPendingHandshake() const OVERRIDE { | 77 virtual bool HasPendingHandshake() const OVERRIDE { |
74 return session_->HasPendingHandshake(); | 78 return session_->HasPendingHandshake(); |
75 } | 79 } |
76 | 80 |
77 private: | 81 private: |
78 QuicSession* session_; | 82 QuicSession* session_; |
79 }; | 83 }; |
80 | 84 |
81 QuicSession::QuicSession(QuicConnection* connection, | 85 QuicSession::QuicSession(QuicConnection* connection, |
82 const QuicConfig& config) | 86 const QuicConfig& config) |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 NOTIMPLEMENTED(); | 629 NOTIMPLEMENTED(); |
626 return false; | 630 return false; |
627 } | 631 } |
628 | 632 |
629 void QuicSession::PostProcessAfterData() { | 633 void QuicSession::PostProcessAfterData() { |
630 STLDeleteElements(&closed_streams_); | 634 STLDeleteElements(&closed_streams_); |
631 closed_streams_.clear(); | 635 closed_streams_.clear(); |
632 } | 636 } |
633 | 637 |
634 } // namespace net | 638 } // namespace net |
OLD | NEW |