OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_client_session_base.h" | 5 #include "net/quic/core/quic_client_session_base.h" |
6 | 6 |
7 #include "net/quic/core/quic_client_promised_info.h" | 7 #include "net/quic/core/quic_client_promised_info.h" |
8 #include "net/quic/core/quic_flags.h" | 8 #include "net/quic/core/quic_flags.h" |
9 #include "net/quic/core/spdy_utils.h" | 9 #include "net/quic/core/spdy_utils.h" |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 push_promise_index_->promised_by_url()->erase(it.second->url()); | 28 push_promise_index_->promised_by_url()->erase(it.second->url()); |
29 } | 29 } |
30 delete connection(); | 30 delete connection(); |
31 } | 31 } |
32 | 32 |
33 void QuicClientSessionBase::OnConfigNegotiated() { | 33 void QuicClientSessionBase::OnConfigNegotiated() { |
34 QuicSpdySession::OnConfigNegotiated(); | 34 QuicSpdySession::OnConfigNegotiated(); |
35 } | 35 } |
36 | 36 |
37 void QuicClientSessionBase::OnCryptoHandshakeEvent(CryptoHandshakeEvent event) { | 37 void QuicClientSessionBase::OnCryptoHandshakeEvent(CryptoHandshakeEvent event) { |
38 QuicSession::OnCryptoHandshakeEvent(event); | 38 QuicSpdySession::OnCryptoHandshakeEvent(event); |
39 } | 39 } |
40 | 40 |
41 void QuicClientSessionBase::OnInitialHeadersComplete( | 41 void QuicClientSessionBase::OnInitialHeadersComplete( |
42 QuicStreamId stream_id, | 42 QuicStreamId stream_id, |
43 const SpdyHeaderBlock& response_headers) { | 43 const SpdyHeaderBlock& response_headers) { |
44 // Note that the strong ordering of the headers stream means that | 44 // Note that the strong ordering of the headers stream means that |
45 // QuicSpdyClientStream::OnPromiseHeadersComplete must have already | 45 // QuicSpdyClientStream::OnPromiseHeadersComplete must have already |
46 // been called (on the associated stream) if this is a promised | 46 // been called (on the associated stream) if this is a promised |
47 // stream. However, this stream may not have existed at this time, | 47 // stream. However, this stream may not have existed at this time, |
48 // hence the need to query the session. | 48 // hence the need to query the session. |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 bool locally_reset) { | 176 bool locally_reset) { |
177 QuicSpdySession::CloseStreamInner(stream_id, locally_reset); | 177 QuicSpdySession::CloseStreamInner(stream_id, locally_reset); |
178 headers_stream()->MaybeReleaseSequencerBuffer(); | 178 headers_stream()->MaybeReleaseSequencerBuffer(); |
179 } | 179 } |
180 | 180 |
181 bool QuicClientSessionBase::ShouldReleaseHeadersStreamSequencerBuffer() { | 181 bool QuicClientSessionBase::ShouldReleaseHeadersStreamSequencerBuffer() { |
182 return num_active_requests() == 0 && promised_by_id_.empty(); | 182 return num_active_requests() == 0 && promised_by_id_.empty(); |
183 } | 183 } |
184 | 184 |
185 } // namespace net | 185 } // namespace net |
OLD | NEW |