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

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

Issue 15937012: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small bug fixes Created 7 years, 6 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 | Annotate | Revision Log
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/reliable_quic_stream.h" 8 #include "net/quic/reliable_quic_stream.h"
9 #include "net/tools/quic/quic_spdy_server_stream.h" 9 #include "net/tools/quic/quic_spdy_server_stream.h"
10 10
11 namespace net { 11 namespace net {
12 namespace tools { 12 namespace tools {
13 13
14 QuicServerSession::QuicServerSession( 14 QuicServerSession::QuicServerSession(
15 const QuicConfig& config, 15 const QuicConfig& config,
16 QuicConnection* connection, 16 QuicConnection* connection,
17 QuicSessionOwner* owner) 17 QuicSessionOwner* owner)
18 : QuicSession(connection, config, true), 18 : QuicSession(connection, config, true),
19 owner_(owner) { 19 owner_(owner) {
20 set_max_open_streams(config.max_streams_per_connection());
21 } 20 }
22 21
23 QuicServerSession::~QuicServerSession() { 22 QuicServerSession::~QuicServerSession() {
24 } 23 }
25 24
26 void QuicServerSession::Initialize( 25 void QuicServerSession::Initialize(
27 const QuicCryptoServerConfig& crypto_config) { 26 const QuicCryptoServerConfig& crypto_config) {
28 crypto_stream_.reset(CreateQuicCryptoServerStream(crypto_config)); 27 crypto_stream_.reset(CreateQuicCryptoServerStream(crypto_config));
29 } 28 }
30 29
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 DLOG(ERROR) << "Server push not yet supported"; 65 DLOG(ERROR) << "Server push not yet supported";
67 return NULL; 66 return NULL;
68 } 67 }
69 68
70 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { 69 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() {
71 return crypto_stream_.get(); 70 return crypto_stream_.get();
72 } 71 }
73 72
74 } // namespace tools 73 } // namespace tools
75 } // namespace net 74 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698