OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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/core/quic_spdy_session.h" | 5 #include "net/quic/core/quic_spdy_session.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cstdint> | 8 #include <cstdint> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 spdy_framer_visitor_->set_max_uncompressed_header_bytes( | 796 spdy_framer_visitor_->set_max_uncompressed_header_bytes( |
797 set_max_uncompressed_header_bytes); | 797 set_max_uncompressed_header_bytes); |
798 } | 798 } |
799 | 799 |
800 void QuicSpdySession::CloseConnectionWithDetails(QuicErrorCode error, | 800 void QuicSpdySession::CloseConnectionWithDetails(QuicErrorCode error, |
801 const string& details) { | 801 const string& details) { |
802 connection()->CloseConnection( | 802 connection()->CloseConnection( |
803 error, details, ConnectionCloseBehavior::SEND_CONNECTION_CLOSE_PACKET); | 803 error, details, ConnectionCloseBehavior::SEND_CONNECTION_CLOSE_PACKET); |
804 } | 804 } |
805 | 805 |
| 806 QuicSpdyStream* QuicSpdySession::MaybeCreateIncomingDynamicStream( |
| 807 QuicStreamId id) { |
| 808 return static_cast<QuicSpdyStream*>( |
| 809 QuicSession::MaybeCreateIncomingDynamicStream(id)); |
| 810 } |
| 811 |
| 812 QuicSpdyStream* QuicSpdySession::MaybeCreateOutgoingDynamicStream( |
| 813 SpdyPriority priority) { |
| 814 auto* stream = static_cast<QuicSpdyStream*>( |
| 815 QuicSession::MaybeCreateOutgoingDynamicStream(priority)); |
| 816 if (stream) { |
| 817 stream->SetPriority(priority); |
| 818 } |
| 819 return stream; |
| 820 } |
| 821 |
806 } // namespace net | 822 } // namespace net |
OLD | NEW |