| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |