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 "net/tools/quic/quic_simple_server_packet_writer.h" | 8 #include "net/tools/quic/quic_simple_server_packet_writer.h" |
8 | 9 |
9 namespace net { | 10 namespace net { |
10 namespace tools { | 11 namespace tools { |
11 | 12 |
12 QuicSimplePerConnectionPacketWriter::QuicSimplePerConnectionPacketWriter( | 13 QuicSimplePerConnectionPacketWriter::QuicSimplePerConnectionPacketWriter( |
13 QuicSimpleServerPacketWriter* shared_writer, | 14 QuicSimpleServerPacketWriter* shared_writer, |
14 QuicConnection* connection) | 15 QuicConnection* connection) |
15 : shared_writer_(shared_writer), | 16 : shared_writer_(shared_writer), |
16 connection_(connection), | 17 connection_(connection), |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 } | 52 } |
52 | 53 |
53 void QuicSimplePerConnectionPacketWriter::OnWriteComplete(WriteResult result) { | 54 void QuicSimplePerConnectionPacketWriter::OnWriteComplete(WriteResult result) { |
54 if (result.status == WRITE_STATUS_ERROR) { | 55 if (result.status == WRITE_STATUS_ERROR) { |
55 connection_->OnWriteError(result.error_code); | 56 connection_->OnWriteError(result.error_code); |
56 } | 57 } |
57 } | 58 } |
58 | 59 |
59 } // namespace tools | 60 } // namespace tools |
60 } // namespace net | 61 } // namespace net |
OLD | NEW |