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> | 8 #include <stddef.h> |
9 | 9 |
10 #include "net/base/ip_endpoint.h" | 10 #include "net/base/ip_endpoint.h" |
| 11 #include "net/base/net_export.h" |
11 #include "net/quic/core/quic_protocol.h" | 12 #include "net/quic/core/quic_protocol.h" |
12 | 13 |
13 namespace net { | 14 namespace net { |
14 | 15 |
15 class IPAddress; | 16 class IPAddress; |
16 struct WriteResult; | 17 struct WriteResult; |
17 | 18 |
18 class NET_EXPORT_PRIVATE PerPacketOptions { | 19 class NET_EXPORT_PRIVATE PerPacketOptions { |
19 public: | 20 public: |
20 PerPacketOptions() = default; | 21 PerPacketOptions() = default; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // Returns the maximum size of the packet which can be written using this | 65 // Returns the maximum size of the packet which can be written using this |
65 // writer for the supplied peer address. This size may actually exceed the | 66 // writer for the supplied peer address. This size may actually exceed the |
66 // size of a valid QUIC packet. | 67 // size of a valid QUIC packet. |
67 virtual QuicByteCount GetMaxPacketSize( | 68 virtual QuicByteCount GetMaxPacketSize( |
68 const IPEndPoint& peer_address) const = 0; | 69 const IPEndPoint& peer_address) const = 0; |
69 }; | 70 }; |
70 | 71 |
71 } // namespace net | 72 } // namespace net |
72 | 73 |
73 #endif // NET_QUIC_QUIC_PACKET_WRITER_H_ | 74 #endif // NET_QUIC_QUIC_PACKET_WRITER_H_ |
OLD | NEW |