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_per_connection_packet_writer.h" | 5 #include "net/tools/quic/quic_per_connection_packet_writer.h" |
6 | 6 |
7 namespace net { | 7 namespace net { |
8 | 8 |
9 | |
10 QuicPerConnectionPacketWriter::QuicPerConnectionPacketWriter( | 9 QuicPerConnectionPacketWriter::QuicPerConnectionPacketWriter( |
11 QuicPacketWriter* shared_writer) | 10 QuicPacketWriter* shared_writer) |
12 : shared_writer_(shared_writer) {} | 11 : shared_writer_(shared_writer) {} |
13 | 12 |
14 QuicPerConnectionPacketWriter::~QuicPerConnectionPacketWriter() {} | 13 QuicPerConnectionPacketWriter::~QuicPerConnectionPacketWriter() {} |
15 | 14 |
16 WriteResult QuicPerConnectionPacketWriter::WritePacket( | 15 WriteResult QuicPerConnectionPacketWriter::WritePacket( |
17 const char* buffer, | 16 const char* buffer, |
18 size_t buf_len, | 17 size_t buf_len, |
19 const IPAddressNumber& self_address, | 18 const IPAddressNumber& self_address, |
(...skipping 13 matching lines...) Expand all Loading... |
33 | 32 |
34 void QuicPerConnectionPacketWriter::SetWritable() { | 33 void QuicPerConnectionPacketWriter::SetWritable() { |
35 shared_writer_->SetWritable(); | 34 shared_writer_->SetWritable(); |
36 } | 35 } |
37 | 36 |
38 QuicByteCount QuicPerConnectionPacketWriter::GetMaxPacketSize( | 37 QuicByteCount QuicPerConnectionPacketWriter::GetMaxPacketSize( |
39 const IPEndPoint& peer_address) const { | 38 const IPEndPoint& peer_address) const { |
40 return shared_writer_->GetMaxPacketSize(peer_address); | 39 return shared_writer_->GetMaxPacketSize(peer_address); |
41 } | 40 } |
42 | 41 |
43 | |
44 } // namespace net | 42 } // namespace net |
OLD | NEW |