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 #ifndef NET_QUIC_QUIC_PACKET_WRITER_H_ | 5 #ifndef NET_QUIC_QUIC_PACKET_WRITER_H_ |
6 #define NET_QUIC_QUIC_PACKET_WRITER_H_ | 6 #define NET_QUIC_QUIC_PACKET_WRITER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include "net/base/ip_endpoint.h" | 10 #include "net/base/ip_endpoint.h" |
9 #include "net/quic/quic_protocol.h" | 11 #include "net/quic/quic_protocol.h" |
10 | 12 |
11 namespace net { | 13 namespace net { |
12 | 14 |
13 struct WriteResult; | 15 struct WriteResult; |
14 | 16 |
15 // An interface between writers and the entity managing the | 17 // An interface between writers and the entity managing the |
16 // socket (in our case the QuicDispatcher). This allows the Dispatcher to | 18 // socket (in our case the QuicDispatcher). This allows the Dispatcher to |
17 // control writes, and manage any writers who end up write blocked. | 19 // control writes, and manage any writers who end up write blocked. |
(...skipping 25 matching lines...) Expand all Loading... |
43 // Returns the maximum size of the packet which can be written using this | 45 // Returns the maximum size of the packet which can be written using this |
44 // writer for the supplied peer address. This size may actually exceed the | 46 // writer for the supplied peer address. This size may actually exceed the |
45 // size of a valid QUIC packet. | 47 // size of a valid QUIC packet. |
46 virtual QuicByteCount GetMaxPacketSize( | 48 virtual QuicByteCount GetMaxPacketSize( |
47 const IPEndPoint& peer_address) const = 0; | 49 const IPEndPoint& peer_address) const = 0; |
48 }; | 50 }; |
49 | 51 |
50 } // namespace net | 52 } // namespace net |
51 | 53 |
52 #endif // NET_QUIC_QUIC_PACKET_WRITER_H_ | 54 #endif // NET_QUIC_QUIC_PACKET_WRITER_H_ |
OLD | NEW |