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

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

Issue 734063004: Update from https://crrev.com/304418 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 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/tools/quic/quic_server_session.h ('k') | net/tools/quic/quic_server_session_test.cc » ('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 (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.h" 5 #include "net/tools/quic/quic_server_session.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/quic/crypto/source_address_token.h" 8 #include "net/quic/crypto/cached_network_parameters.h"
9 #include "net/quic/quic_connection.h" 9 #include "net/quic/quic_connection.h"
10 #include "net/quic/quic_flags.h" 10 #include "net/quic/quic_flags.h"
11 #include "net/quic/reliable_quic_stream.h" 11 #include "net/quic/reliable_quic_stream.h"
12 #include "net/tools/quic/quic_spdy_server_stream.h" 12 #include "net/tools/quic/quic_spdy_server_stream.h"
13 13
14 namespace net { 14 namespace net {
15 namespace tools { 15 namespace tools {
16 16
17 QuicServerSession::QuicServerSession(const QuicConfig& config, 17 QuicServerSession::QuicServerSession(const QuicConfig& config,
18 QuicConnection* connection, 18 QuicConnection* connection,
19 QuicServerSessionVisitor* visitor, 19 QuicServerSessionVisitor* visitor)
20 bool is_secure) 20 : QuicSession(connection, config),
21 : QuicSession(connection, config, is_secure),
22 visitor_(visitor), 21 visitor_(visitor),
23 bandwidth_estimate_sent_to_client_(QuicBandwidth::Zero()), 22 bandwidth_estimate_sent_to_client_(QuicBandwidth::Zero()),
24 last_scup_time_(QuicTime::Zero()), 23 last_scup_time_(QuicTime::Zero()),
25 last_scup_sequence_number_(0) {} 24 last_scup_sequence_number_(0) {}
26 25
27 QuicServerSession::~QuicServerSession() {} 26 QuicServerSession::~QuicServerSession() {}
28 27
29 void QuicServerSession::InitializeSession( 28 void QuicServerSession::InitializeSession(
30 const QuicCryptoServerConfig& crypto_config) { 29 const QuicCryptoServerConfig& crypto_config) {
31 QuicSession::InitializeSession(); 30 QuicSession::InitializeSession();
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 DLOG(ERROR) << "Server push not yet supported"; 174 DLOG(ERROR) << "Server push not yet supported";
176 return nullptr; 175 return nullptr;
177 } 176 }
178 177
179 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { 178 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() {
180 return crypto_stream_.get(); 179 return crypto_stream_.get();
181 } 180 }
182 181
183 } // namespace tools 182 } // namespace tools
184 } // namespace net 183 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_server_session.h ('k') | net/tools/quic/quic_server_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698