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_server_packet_writer.h" | 5 #include "net/tools/quic/quic_simple_server_packet_writer.h" |
6 | 6 |
7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/metrics/sparse_histogram.h" | 10 #include "base/metrics/sparse_histogram.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 UMA_HISTOGRAM_SPARSE_SLOWLY("Net.QuicSession.WriteError", -rv); | 90 UMA_HISTOGRAM_SPARSE_SLOWLY("Net.QuicSession.WriteError", -rv); |
91 status = WRITE_STATUS_ERROR; | 91 status = WRITE_STATUS_ERROR; |
92 } else { | 92 } else { |
93 status = WRITE_STATUS_BLOCKED; | 93 status = WRITE_STATUS_BLOCKED; |
94 write_blocked_ = true; | 94 write_blocked_ = true; |
95 } | 95 } |
96 } | 96 } |
97 return WriteResult(status, rv); | 97 return WriteResult(status, rv); |
98 } | 98 } |
99 | 99 |
| 100 QuicByteCount QuicSimpleServerPacketWriter::GetMaxPacketSize( |
| 101 const IPEndPoint& peer_address) const { |
| 102 return kMaxPacketSize; |
| 103 } |
| 104 |
100 } // namespace tools | 105 } // namespace tools |
101 } // namespace net | 106 } // namespace net |
OLD | NEW |