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

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

Issue 2236973002: Landing Recent QUIC changes until 4AM, Aug 7, 2016 UTC-4 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: flip quic_sequencer_buffer_retire_block_in_time to true Created 4 years, 4 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 <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 17 matching lines...) Expand all
28 const QuicCryptoServerConfig* crypto_config, 28 const QuicCryptoServerConfig* crypto_config,
29 QuicCompressedCertsCache* compressed_certs_cache) 29 QuicCompressedCertsCache* compressed_certs_cache)
30 : QuicServerSessionBase(config, 30 : QuicServerSessionBase(config,
31 connection, 31 connection,
32 visitor, 32 visitor,
33 helper, 33 helper,
34 crypto_config, 34 crypto_config,
35 compressed_certs_cache), 35 compressed_certs_cache),
36 highest_promised_stream_id_(0) {} 36 highest_promised_stream_id_(0) {}
37 37
38 QuicSimpleServerSession::~QuicSimpleServerSession() {} 38 QuicSimpleServerSession::~QuicSimpleServerSession() {
39 delete connection();
40 }
39 41
40 QuicCryptoServerStreamBase* 42 QuicCryptoServerStreamBase*
41 QuicSimpleServerSession::CreateQuicCryptoServerStream( 43 QuicSimpleServerSession::CreateQuicCryptoServerStream(
42 const QuicCryptoServerConfig* crypto_config, 44 const QuicCryptoServerConfig* crypto_config,
43 QuicCompressedCertsCache* compressed_certs_cache) { 45 QuicCompressedCertsCache* compressed_certs_cache) {
44 return new QuicCryptoServerStream(crypto_config, compressed_certs_cache, 46 return new QuicCryptoServerStream(crypto_config, compressed_certs_cache,
45 FLAGS_enable_quic_stateless_reject_support, 47 FLAGS_enable_quic_stateless_reject_support,
46 this); 48 this);
47 } 49 }
48 50
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 DVLOG(1) << "created server push stream " << promised_stream->id(); 200 DVLOG(1) << "created server push stream " << promised_stream->id();
199 201
200 SpdyHeaderBlock request_headers(std::move(promised_info.request_headers)); 202 SpdyHeaderBlock request_headers(std::move(promised_info.request_headers));
201 203
202 promised_streams_.pop_front(); 204 promised_streams_.pop_front();
203 promised_stream->PushResponse(std::move(request_headers)); 205 promised_stream->PushResponse(std::move(request_headers));
204 } 206 }
205 } 207 }
206 208
207 } // namespace net 209 } // 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