OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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_CORE_FRAMES_QUIC_PATH_CLOSE_FRAME_H_ | 5 #ifndef NET_QUIC_CORE_FRAMES_QUIC_PATH_CLOSE_FRAME_H_ |
6 #define NET_QUIC_CORE_FRAMES_QUIC_PATH_CLOSE_FRAME_H_ | 6 #define NET_QUIC_CORE_FRAMES_QUIC_PATH_CLOSE_FRAME_H_ |
7 | 7 |
8 #include "net/base/net_export.h" | |
9 #include "net/quic/core/quic_types.h" | 8 #include "net/quic/core/quic_types.h" |
| 9 #include "net/quic/platform/api/quic_export.h" |
10 | 10 |
11 namespace net { | 11 namespace net { |
12 | 12 |
13 // The PATH_CLOSE frame is used to explicitly close a path. Both endpoints can | 13 // The PATH_CLOSE frame is used to explicitly close a path. Both endpoints can |
14 // send a PATH_CLOSE frame to initiate a path termination. A path is considered | 14 // send a PATH_CLOSE frame to initiate a path termination. A path is considered |
15 // to be closed either a PATH_CLOSE frame is sent or received. An endpoint drops | 15 // to be closed either a PATH_CLOSE frame is sent or received. An endpoint drops |
16 // receive side of a closed path, and packets with retransmittable frames on a | 16 // receive side of a closed path, and packets with retransmittable frames on a |
17 // closed path are marked as retransmissions which will be transmitted on other | 17 // closed path are marked as retransmissions which will be transmitted on other |
18 // paths. | 18 // paths. |
19 struct NET_EXPORT_PRIVATE QuicPathCloseFrame { | 19 struct QUIC_EXPORT_PRIVATE QuicPathCloseFrame { |
20 QuicPathCloseFrame() {} | 20 QuicPathCloseFrame() {} |
21 explicit QuicPathCloseFrame(QuicPathId path_id); | 21 explicit QuicPathCloseFrame(QuicPathId path_id); |
22 | 22 |
23 friend NET_EXPORT_PRIVATE std::ostream& operator<<( | 23 friend QUIC_EXPORT_PRIVATE std::ostream& operator<<( |
24 std::ostream& os, | 24 std::ostream& os, |
25 const QuicPathCloseFrame& p); | 25 const QuicPathCloseFrame& p); |
26 | 26 |
27 QuicPathId path_id; | 27 QuicPathId path_id; |
28 }; | 28 }; |
29 | 29 |
30 } // namespace net | 30 } // namespace net |
31 | 31 |
32 #endif // NET_QUIC_CORE_FRAMES_QUIC_PATH_CLOSE_FRAME_H_ | 32 #endif // NET_QUIC_CORE_FRAMES_QUIC_PATH_CLOSE_FRAME_H_ |
OLD | NEW |