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

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

Issue 1422533006: Merge GetIncomingDynamicStream and GetDynamicStream into a single GetOrCreateDynamicStream method i… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@106419223
Patch Set: Created 5 years, 1 month 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/quic_session_test.cc ('k') | net/quic/test_tools/quic_session_peer.h » ('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/quic_spdy_session.h" 5 #include "net/quic/quic_spdy_session.h"
6 6
7 #include "net/quic/quic_headers_stream.h" 7 #include "net/quic/quic_headers_stream.h"
8 8
9 namespace net { 9 namespace net {
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 const SpdyHeaderBlock& headers, 67 const SpdyHeaderBlock& headers,
68 bool fin, 68 bool fin,
69 QuicPriority priority, 69 QuicPriority priority,
70 QuicAckListenerInterface* ack_notifier_delegate) { 70 QuicAckListenerInterface* ack_notifier_delegate) {
71 return headers_stream_->WriteHeaders(id, headers, fin, priority, 71 return headers_stream_->WriteHeaders(id, headers, fin, priority,
72 ack_notifier_delegate); 72 ack_notifier_delegate);
73 } 73 }
74 74
75 QuicSpdyStream* QuicSpdySession::GetSpdyDataStream( 75 QuicSpdyStream* QuicSpdySession::GetSpdyDataStream(
76 const QuicStreamId stream_id) { 76 const QuicStreamId stream_id) {
77 return static_cast<QuicSpdyStream*>(GetDynamicStream(stream_id)); 77 return static_cast<QuicSpdyStream*>(GetOrCreateDynamicStream(stream_id));
78 } 78 }
79 79
80 } // namespace net 80 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_session_test.cc ('k') | net/quic/test_tools/quic_session_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698