Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: net/quic/core/quic_client_session_base.cc

Issue 2512623002: Add connection option kSMHL indicating supporting SETTINGS_MAX_HEADER_LIST_SIZE. SETTINGS_MAX_HEADE… (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/core/crypto/crypto_protocol.h ('k') | net/quic/core/quic_config.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/quic/core/crypto/crypto_protocol.h ('k') | net/quic/core/quic_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698