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/quic/quic_per_connection_packet_writer.h" | 5 #include "net/quic/quic_per_connection_packet_writer.h" |
6 | 6 |
7 #include "net/quic/quic_server_packet_writer.h" | 7 #include "net/quic/quic_server_packet_writer.h" |
8 | 8 |
9 namespace net { | 9 namespace net { |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 bool QuicPerConnectionPacketWriter::IsWriteBlocked() const { | 44 bool QuicPerConnectionPacketWriter::IsWriteBlocked() const { |
45 return shared_writer_->IsWriteBlocked(); | 45 return shared_writer_->IsWriteBlocked(); |
46 } | 46 } |
47 | 47 |
48 void QuicPerConnectionPacketWriter::SetWritable() { | 48 void QuicPerConnectionPacketWriter::SetWritable() { |
49 shared_writer_->SetWritable(); | 49 shared_writer_->SetWritable(); |
50 } | 50 } |
51 | 51 |
52 void QuicPerConnectionPacketWriter::OnWriteComplete(WriteResult result) { | 52 void QuicPerConnectionPacketWriter::OnWriteComplete(WriteResult result) { |
53 connection_->OnPacketSent(result); | 53 if (result.status == WRITE_STATUS_ERROR) { |
| 54 connection_->OnWriteError(result.error_code); |
| 55 } |
54 } | 56 } |
55 | 57 |
56 } // namespace net | 58 } // namespace net |
OLD | NEW |