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

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

Issue 1783783003: Add a QuicCompressedCertsCache instance to QuicDispatcher, plumbing to QuicServerSessionBase but no… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@116273065
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_server_session_base.h" 5 #include "net/tools/quic/quic_server_session_base.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/quic/proto/cached_network_parameters.pb.h" 8 #include "net/quic/proto/cached_network_parameters.pb.h"
9 #include "net/quic/quic_bug_tracker.h" 9 #include "net/quic/quic_bug_tracker.h"
10 #include "net/quic/quic_connection.h" 10 #include "net/quic/quic_connection.h"
11 #include "net/quic/quic_flags.h" 11 #include "net/quic/quic_flags.h"
12 #include "net/quic/quic_spdy_session.h" 12 #include "net/quic/quic_spdy_session.h"
13 #include "net/quic/reliable_quic_stream.h" 13 #include "net/quic/reliable_quic_stream.h"
14 14
15 namespace net { 15 namespace net {
16 16
17 QuicServerSessionBase::QuicServerSessionBase( 17 QuicServerSessionBase::QuicServerSessionBase(
18 const QuicConfig& config, 18 const QuicConfig& config,
19 QuicConnection* connection, 19 QuicConnection* connection,
20 QuicServerSessionVisitor* visitor, 20 QuicServerSessionVisitor* visitor,
21 const QuicCryptoServerConfig* crypto_config) 21 const QuicCryptoServerConfig* crypto_config,
22 QuicCompressedCertsCache* compressed_certs_cache)
22 : QuicSpdySession(connection, config), 23 : QuicSpdySession(connection, config),
23 crypto_config_(crypto_config), 24 crypto_config_(crypto_config),
25 compressed_certs_cache_(compressed_certs_cache),
24 visitor_(visitor), 26 visitor_(visitor),
25 bandwidth_resumption_enabled_(false), 27 bandwidth_resumption_enabled_(false),
26 bandwidth_estimate_sent_to_client_(QuicBandwidth::Zero()), 28 bandwidth_estimate_sent_to_client_(QuicBandwidth::Zero()),
27 last_scup_time_(QuicTime::Zero()), 29 last_scup_time_(QuicTime::Zero()),
28 last_scup_packet_number_(0) {} 30 last_scup_packet_number_(0) {}
29 31
30 QuicServerSessionBase::~QuicServerSessionBase() {} 32 QuicServerSessionBase::~QuicServerSessionBase() {}
31 33
32 void QuicServerSessionBase::Initialize() { 34 void QuicServerSessionBase::Initialize() {
33 crypto_stream_.reset(CreateQuicCryptoServerStream(crypto_config_)); 35 crypto_stream_.reset(CreateQuicCryptoServerStream(crypto_config_));
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 return false; 208 return false;
207 } 209 }
208 return true; 210 return true;
209 } 211 }
210 212
211 QuicCryptoServerStreamBase* QuicServerSessionBase::GetCryptoStream() { 213 QuicCryptoServerStreamBase* QuicServerSessionBase::GetCryptoStream() {
212 return crypto_stream_.get(); 214 return crypto_stream_.get();
213 } 215 }
214 216
215 } // namespace net 217 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_server_session_base.h ('k') | net/tools/quic/quic_server_session_base_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698