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