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

Side by Side Diff: net/tools/quic/quic_simple_server_session.cc

Issue 1782743005: Add QuicCompressedCertsCache* to QuicCrytoServerStream plumbed from QuicServerSessionBase. No behav… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@116387934
Patch Set: Created 4 years, 9 months 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
OLDNEW
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/tools/quic/quic_simple_server_session.h" 5 #include "net/tools/quic/quic_simple_server_session.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "net/quic/proto/cached_network_parameters.pb.h" 9 #include "net/quic/proto/cached_network_parameters.pb.h"
10 #include "net/quic/quic_connection.h" 10 #include "net/quic/quic_connection.h"
(...skipping 15 matching lines...) Expand all
26 connection, 26 connection,
27 visitor, 27 visitor,
28 crypto_config, 28 crypto_config,
29 compressed_certs_cache), 29 compressed_certs_cache),
30 highest_promised_stream_id_(0) {} 30 highest_promised_stream_id_(0) {}
31 31
32 QuicSimpleServerSession::~QuicSimpleServerSession() {} 32 QuicSimpleServerSession::~QuicSimpleServerSession() {}
33 33
34 QuicCryptoServerStreamBase* 34 QuicCryptoServerStreamBase*
35 QuicSimpleServerSession::CreateQuicCryptoServerStream( 35 QuicSimpleServerSession::CreateQuicCryptoServerStream(
36 const QuicCryptoServerConfig* crypto_config) { 36 const QuicCryptoServerConfig* crypto_config,
37 return new QuicCryptoServerStream( 37 QuicCompressedCertsCache* compressed_certs_cache) {
38 crypto_config, FLAGS_enable_quic_stateless_reject_support, this); 38 return new QuicCryptoServerStream(crypto_config, compressed_certs_cache,
39 FLAGS_enable_quic_stateless_reject_support,
40 this);
39 } 41 }
40 42
41 void QuicSimpleServerSession::StreamDraining(QuicStreamId id) { 43 void QuicSimpleServerSession::StreamDraining(QuicStreamId id) {
42 QuicSpdySession::StreamDraining(id); 44 QuicSpdySession::StreamDraining(id);
43 if (!IsIncomingStream(id)) { 45 if (!IsIncomingStream(id)) {
44 HandlePromisedPushRequests(); 46 HandlePromisedPushRequests();
45 } 47 }
46 } 48 }
47 49
48 void QuicSimpleServerSession::OnStreamFrame(const QuicStreamFrame& frame) { 50 void QuicSimpleServerSession::OnStreamFrame(const QuicStreamFrame& frame) {
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 DVLOG(1) << "created server push stream " << promised_stream->id(); 186 DVLOG(1) << "created server push stream " << promised_stream->id();
185 187
186 const SpdyHeaderBlock request_headers(promised_info.request_headers); 188 const SpdyHeaderBlock request_headers(promised_info.request_headers);
187 189
188 promised_streams_.pop_front(); 190 promised_streams_.pop_front();
189 promised_stream->PushResponse(request_headers); 191 promised_stream->PushResponse(request_headers);
190 } 192 }
191 } 193 }
192 194
193 } // namespace net 195 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_simple_server_session.h ('k') | net/tools/quic/quic_simple_server_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698