OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_default_packet_writer.h" | 5 #include "net/quic/quic_default_packet_writer.h" |
6 | 6 |
7 #include "base/location.h" | 7 #include "base/location.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/metrics/histogram_macros.h" | 9 #include "base/metrics/histogram_macros.h" |
10 #include "base/metrics/sparse_histogram.h" | 10 #include "base/metrics/sparse_histogram.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 71 |
72 void QuicDefaultPacketWriter::OnWriteComplete(int rv) { | 72 void QuicDefaultPacketWriter::OnWriteComplete(int rv) { |
73 DCHECK_NE(rv, ERR_IO_PENDING); | 73 DCHECK_NE(rv, ERR_IO_PENDING); |
74 write_blocked_ = false; | 74 write_blocked_ = false; |
75 if (rv < 0) { | 75 if (rv < 0) { |
76 connection_->OnWriteError(rv); | 76 connection_->OnWriteError(rv); |
77 } | 77 } |
78 connection_->OnCanWrite(); | 78 connection_->OnCanWrite(); |
79 } | 79 } |
80 | 80 |
| 81 QuicByteCount QuicDefaultPacketWriter::GetMaxPacketSize( |
| 82 const IPEndPoint& peer_address) const { |
| 83 return kMaxPacketSize; |
| 84 } |
| 85 |
81 } // namespace net | 86 } // namespace net |
OLD | NEW |