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

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

Issue 11958018: Queueing QUIC frames to be resent instead of packets and packing RST frames with acks and congestio… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
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_protocol.h" 5 #include "net/quic/quic_protocol.h"
6 #include "base/stl_util.h" 6 #include "base/stl_util.h"
7 7
8 using base::StringPiece; 8 using base::StringPiece;
9 using std::map; 9 using std::map;
10 using std::numeric_limits; 10 using std::numeric_limits;
11 using std::ostream; 11 using std::ostream;
12 12
13 namespace net { 13 namespace net {
14 14
15 QuicStreamFrame::QuicStreamFrame() {} 15 QuicStreamFrame::QuicStreamFrame() {}
16 16
17 QuicStreamFrame::QuicStreamFrame(QuicStreamId stream_id, 17 QuicStreamFrame::QuicStreamFrame(QuicStreamId stream_id,
18 bool fin, 18 bool fin,
19 uint64 offset, 19 QuicStreamOffset offset,
20 StringPiece data) 20 StringPiece data)
21 : stream_id(stream_id), 21 : stream_id(stream_id),
22 fin(fin), 22 fin(fin),
23 offset(offset), 23 offset(offset),
24 data(data) { 24 data(data) {
25 } 25 }
26 26
27 // TODO(ianswett): Initializing largest_observed to 0 should not be necessary. 27 // TODO(ianswett): Initializing largest_observed to 0 should not be necessary.
28 ReceivedPacketInfo::ReceivedPacketInfo() : largest_observed(0) {} 28 ReceivedPacketInfo::ReceivedPacketInfo() : largest_observed(0) {}
29 29
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 return true; 167 return true;
168 } 168 }
169 169
170 QuicData::~QuicData() { 170 QuicData::~QuicData() {
171 if (owns_buffer_) { 171 if (owns_buffer_) {
172 delete [] const_cast<char*>(buffer_); 172 delete [] const_cast<char*>(buffer_);
173 } 173 }
174 } 174 }
175 175
176 } // namespace net 176 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698