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/proto/cached_network_parameters.pb.h" | 8 #include "net/quic/proto/cached_network_parameters.pb.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" |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 } | 189 } |
190 | 190 |
191 if (id % 2 == 0) { | 191 if (id % 2 == 0) { |
192 DVLOG(1) << "Invalid incoming even stream_id:" << id; | 192 DVLOG(1) << "Invalid incoming even stream_id:" << id; |
193 connection()->SendConnectionClose(QUIC_INVALID_STREAM_ID); | 193 connection()->SendConnectionClose(QUIC_INVALID_STREAM_ID); |
194 return false; | 194 return false; |
195 } | 195 } |
196 return true; | 196 return true; |
197 } | 197 } |
198 | 198 |
199 QuicDataStream* QuicServerSession::CreateIncomingDynamicStream( | 199 QuicSpdyStream* QuicServerSession::CreateIncomingDynamicStream( |
200 QuicStreamId id) { | 200 QuicStreamId id) { |
201 if (!ShouldCreateIncomingDynamicStream(id)) { | 201 if (!ShouldCreateIncomingDynamicStream(id)) { |
202 return nullptr; | 202 return nullptr; |
203 } | 203 } |
204 | 204 |
205 return new QuicSpdyServerStream(id, this); | 205 return new QuicSpdyServerStream(id, this); |
206 } | 206 } |
207 | 207 |
208 QuicDataStream* QuicServerSession::CreateOutgoingDynamicStream() { | 208 QuicSpdyStream* QuicServerSession::CreateOutgoingDynamicStream() { |
209 DLOG(ERROR) << "Server push not yet supported"; | 209 DLOG(ERROR) << "Server push not yet supported"; |
210 return nullptr; | 210 return nullptr; |
211 } | 211 } |
212 | 212 |
213 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { | 213 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { |
214 return crypto_stream_.get(); | 214 return crypto_stream_.get(); |
215 } | 215 } |
216 | 216 |
217 } // namespace tools | 217 } // namespace tools |
218 } // namespace net | 218 } // namespace net |
OLD | NEW |