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

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

Issue 185203003: Killing off QUICv12, including cleaning out all of the code for handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Deleted unused StripUint32 Created 6 years, 9 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_write_blocked_list_test.cc ('k') | net/quic/reliable_quic_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) 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/reliable_quic_stream.h" 5 #include "net/quic/reliable_quic_stream.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/quic/quic_session.h" 8 #include "net/quic/quic_session.h"
9 #include "net/quic/quic_spdy_decompressor.h"
10 #include "net/quic/quic_write_blocked_list.h" 9 #include "net/quic/quic_write_blocked_list.h"
11 10
12 using base::StringPiece; 11 using base::StringPiece;
13 using std::min; 12 using std::min;
14 13
15 namespace net { 14 namespace net {
16 15
17 #define ENDPOINT (is_server_ ? "Server: " : " Client: ") 16 #define ENDPOINT (is_server_ ? "Server: " : " Client: ")
18 17
19 namespace { 18 namespace {
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // For flow control accounting, we must tell the peer how many bytes we have 241 // For flow control accounting, we must tell the peer how many bytes we have
243 // written on this stream before termination. Done here if needed, using a 242 // written on this stream before termination. Done here if needed, using a
244 // RST frame. 243 // RST frame.
245 DVLOG(1) << ENDPOINT << "Sending RST in OnClose: " << id(); 244 DVLOG(1) << ENDPOINT << "Sending RST in OnClose: " << id();
246 session_->SendRstStream(id(), QUIC_STREAM_NO_ERROR, stream_bytes_written_); 245 session_->SendRstStream(id(), QUIC_STREAM_NO_ERROR, stream_bytes_written_);
247 rst_sent_ = true; 246 rst_sent_ = true;
248 } 247 }
249 } 248 }
250 249
251 } // namespace net 250 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_write_blocked_list_test.cc ('k') | net/quic/reliable_quic_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698