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

Side by Side Diff: net/tools/quic/quic_packet_writer_wrapper.cc

Issue 1320303009: relnote: Allow individual QUIC writers to limit the maximum packet size. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0909_1
Patch Set: Created 5 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/tools/quic/quic_packet_writer_wrapper.h" 5 #include "net/tools/quic/quic_packet_writer_wrapper.h"
6 6
7 #include "net/quic/quic_types.h" 7 #include "net/quic/quic_types.h"
8 8
9 namespace net { 9 namespace net {
10 namespace tools { 10 namespace tools {
(...skipping 18 matching lines...) Expand all
29 } 29 }
30 30
31 bool QuicPacketWriterWrapper::IsWriteBlocked() const { 31 bool QuicPacketWriterWrapper::IsWriteBlocked() const {
32 return writer_->IsWriteBlocked(); 32 return writer_->IsWriteBlocked();
33 } 33 }
34 34
35 void QuicPacketWriterWrapper::SetWritable() { 35 void QuicPacketWriterWrapper::SetWritable() {
36 writer_->SetWritable(); 36 writer_->SetWritable();
37 } 37 }
38 38
39 QuicByteCount QuicPacketWriterWrapper::GetMaxPacketSize(
40 const IPEndPoint& peer_address) const {
41 return writer_->GetMaxPacketSize(peer_address);
42 }
43
39 void QuicPacketWriterWrapper::set_writer(QuicPacketWriter* writer) { 44 void QuicPacketWriterWrapper::set_writer(QuicPacketWriter* writer) {
40 writer_.reset(writer); 45 writer_.reset(writer);
41 } 46 }
42 47
43 } // namespace tools 48 } // namespace tools
44 } // namespace net 49 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_packet_writer_wrapper.h ('k') | net/tools/quic/quic_per_connection_packet_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698