OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/quic/quic_server_session.h" | 5 #include "net/quic/quic_server_session.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "net/quic/quic_connection.h" | 8 #include "net/quic/quic_connection.h" |
9 #include "net/quic/quic_spdy_server_stream.h" | 9 #include "net/quic/quic_spdy_server_stream.h" |
10 #include "net/quic/reliable_quic_stream.h" | 10 #include "net/quic/reliable_quic_stream.h" |
11 | 11 |
12 namespace net { | 12 namespace net { |
13 | 13 |
14 QuicServerSession::QuicServerSession(const QuicConfig& config, | 14 QuicServerSession::QuicServerSession(const QuicConfig& config, |
15 QuicConnection* connection, | 15 QuicConnection* connection, |
16 uint32 max_flow_control_window_bytes, | |
17 QuicServerSessionVisitor* visitor) | 16 QuicServerSessionVisitor* visitor) |
18 : QuicSession(connection, max_flow_control_window_bytes, config), | 17 : QuicSession(connection, config), |
19 visitor_(visitor) {} | 18 visitor_(visitor) {} |
20 | 19 |
21 QuicServerSession::~QuicServerSession() {} | 20 QuicServerSession::~QuicServerSession() {} |
22 | 21 |
23 void QuicServerSession::InitializeSession( | 22 void QuicServerSession::InitializeSession( |
24 const QuicCryptoServerConfig& crypto_config) { | 23 const QuicCryptoServerConfig& crypto_config) { |
25 crypto_stream_.reset(CreateQuicCryptoServerStream(crypto_config)); | 24 crypto_stream_.reset(CreateQuicCryptoServerStream(crypto_config)); |
26 } | 25 } |
27 | 26 |
28 QuicCryptoServerStream* QuicServerSession::CreateQuicCryptoServerStream( | 27 QuicCryptoServerStream* QuicServerSession::CreateQuicCryptoServerStream( |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 QuicDataStream* QuicServerSession::CreateOutgoingDataStream() { | 72 QuicDataStream* QuicServerSession::CreateOutgoingDataStream() { |
74 DLOG(ERROR) << "Server push not yet supported"; | 73 DLOG(ERROR) << "Server push not yet supported"; |
75 return NULL; | 74 return NULL; |
76 } | 75 } |
77 | 76 |
78 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { | 77 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { |
79 return crypto_stream_.get(); | 78 return crypto_stream_.get(); |
80 } | 79 } |
81 | 80 |
82 } // namespace net | 81 } // namespace net |
OLD | NEW |