| 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_simple_per_connection_packet_writer.h" | 5 #include "net/tools/quic/quic_simple_per_connection_packet_writer.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "net/tools/quic/quic_simple_server_packet_writer.h" | 8 #include "net/tools/quic/quic_simple_server_packet_writer.h" |
| 9 | 9 |
| 10 namespace net { | 10 namespace net { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 void QuicSimplePerConnectionPacketWriter::SetWritable() { | 50 void QuicSimplePerConnectionPacketWriter::SetWritable() { |
| 51 shared_writer_->SetWritable(); | 51 shared_writer_->SetWritable(); |
| 52 } | 52 } |
| 53 | 53 |
| 54 void QuicSimplePerConnectionPacketWriter::OnWriteComplete(WriteResult result) { | 54 void QuicSimplePerConnectionPacketWriter::OnWriteComplete(WriteResult result) { |
| 55 if (connection_ && result.status == WRITE_STATUS_ERROR) { | 55 if (connection_ && result.status == WRITE_STATUS_ERROR) { |
| 56 connection_->OnWriteError(result.error_code); | 56 connection_->OnWriteError(result.error_code); |
| 57 } | 57 } |
| 58 } | 58 } |
| 59 | 59 |
| 60 QuicByteCount QuicSimplePerConnectionPacketWriter::GetMaxPacketSize( |
| 61 const IPEndPoint& peer_address) const { |
| 62 return shared_writer_->GetMaxPacketSize(peer_address); |
| 63 } |
| 64 |
| 60 } // namespace tools | 65 } // namespace tools |
| 61 } // namespace net | 66 } // namespace net |
| OLD | NEW |