OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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/core/quic_spdy_session.h" | 5 #include "net/quic/core/quic_spdy_session.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "net/quic/core/quic_bug_tracker.h" | 9 #include "net/quic/core/quic_bug_tracker.h" |
10 #include "net/quic/core/quic_headers_stream.h" | 10 #include "net/quic/core/quic_headers_stream.h" |
11 | 11 |
12 using base::StringPiece; | 12 using base::StringPiece; |
13 using std::string; | 13 using std::string; |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 | 16 |
17 QuicSpdySession::QuicSpdySession(QuicConnection* connection, | 17 QuicSpdySession::QuicSpdySession(QuicConnection* connection, |
| 18 QuicSession::Visitor* visitor, |
18 const QuicConfig& config) | 19 const QuicConfig& config) |
19 : QuicSession(connection, config), | 20 : QuicSession(connection, visitor, config), |
20 force_hol_blocking_(false), | 21 force_hol_blocking_(false), |
21 server_push_enabled_(false) {} | 22 server_push_enabled_(false) {} |
22 | 23 |
23 QuicSpdySession::~QuicSpdySession() { | 24 QuicSpdySession::~QuicSpdySession() { |
24 // Set the streams' session pointers in closed and dynamic stream lists | 25 // Set the streams' session pointers in closed and dynamic stream lists |
25 // to null to avoid subsequent use of this session. | 26 // to null to avoid subsequent use of this session. |
26 for (auto& stream : *closed_streams()) { | 27 for (auto& stream : *closed_streams()) { |
27 static_cast<QuicSpdyStream*>(stream.get())->ClearSession(); | 28 static_cast<QuicSpdyStream*>(stream.get())->ClearSession(); |
28 } | 29 } |
29 for (auto const& kv : dynamic_streams()) { | 30 for (auto const& kv : dynamic_streams()) { |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 DVLOG(1) << "De-encapsulating DATA frame for stream " << stream_id | 147 DVLOG(1) << "De-encapsulating DATA frame for stream " << stream_id |
147 << " offset " << offset << " len " << len << " fin " << fin; | 148 << " offset " << offset << " len " << len << " fin " << fin; |
148 OnStreamFrame(frame); | 149 OnStreamFrame(frame); |
149 } | 150 } |
150 | 151 |
151 bool QuicSpdySession::ShouldReleaseHeadersStreamSequencerBuffer() { | 152 bool QuicSpdySession::ShouldReleaseHeadersStreamSequencerBuffer() { |
152 return false; | 153 return false; |
153 } | 154 } |
154 | 155 |
155 } // namespace net | 156 } // namespace net |
OLD | NEW |