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

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

Issue 111283004: Rename GetIncomingReliableStream to GetIncomingDataStream. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_session.h ('k') | net/quic/quic_session_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) 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/quic/quic_session.h" 5 #include "net/quic/quic_session.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "net/quic/crypto/proof_verifier.h" 8 #include "net/quic/crypto/proof_verifier.h"
9 #include "net/quic/quic_connection.h" 9 #include "net/quic/quic_connection.h"
10 #include "net/quic/quic_headers_stream.h" 10 #include "net/quic/quic_headers_stream.h"
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 504
505 if (stream_id % 2 == next_stream_id_ % 2) { 505 if (stream_id % 2 == next_stream_id_ % 2) {
506 // We've received a frame for a locally-created stream that is not 506 // We've received a frame for a locally-created stream that is not
507 // currently active. This is an error. 507 // currently active. This is an error.
508 if (connection()->connected()) { 508 if (connection()->connected()) {
509 connection()->SendConnectionClose(QUIC_PACKET_FOR_NONEXISTENT_STREAM); 509 connection()->SendConnectionClose(QUIC_PACKET_FOR_NONEXISTENT_STREAM);
510 } 510 }
511 return NULL; 511 return NULL;
512 } 512 }
513 513
514 return GetIncomingReliableStream(stream_id); 514 return GetIncomingDataStream(stream_id);
515 } 515 }
516 516
517 QuicDataStream* QuicSession::GetIncomingReliableStream( 517 QuicDataStream* QuicSession::GetIncomingDataStream(QuicStreamId stream_id) {
518 QuicStreamId stream_id) {
519 if (IsClosedStream(stream_id)) { 518 if (IsClosedStream(stream_id)) {
520 return NULL; 519 return NULL;
521 } 520 }
522 521
523 if (goaway_sent_) { 522 if (goaway_sent_) {
524 // We've already sent a GoAway 523 // We've already sent a GoAway
525 SendRstStream(stream_id, QUIC_STREAM_PEER_GOING_AWAY); 524 SendRstStream(stream_id, QUIC_STREAM_PEER_GOING_AWAY);
526 return NULL; 525 return NULL;
527 } 526 }
528 527
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 NOTIMPLEMENTED(); 614 NOTIMPLEMENTED();
616 return false; 615 return false;
617 } 616 }
618 617
619 void QuicSession::PostProcessAfterData() { 618 void QuicSession::PostProcessAfterData() {
620 STLDeleteElements(&closed_streams_); 619 STLDeleteElements(&closed_streams_);
621 closed_streams_.clear(); 620 closed_streams_.clear();
622 } 621 }
623 622
624 } // namespace net 623 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_session.h ('k') | net/quic/quic_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698