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

Side by Side Diff: net/quic/core/quic_spdy_session.cc

Issue 2862563003: Landing Recent QUIC changes until Sat Apr 29 00:22:04 2017 +0000 (Closed)
Patch Set: rebase and fix test bugs detected by swarm bot. Created 3 years, 7 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
« no previous file with comments | « net/quic/core/quic_spdy_session.h ('k') | net/quic/core/quic_spdy_stream_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/quic/core/quic_spdy_session.h ('k') | net/quic/core/quic_spdy_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698