| 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 <ostream> |
| 9 |
| 8 #include "net/quic/core/quic_types.h" | 10 #include "net/quic/core/quic_types.h" |
| 9 #include "net/quic/platform/api/quic_export.h" | 11 #include "net/quic/platform/api/quic_export.h" |
| 10 | 12 |
| 11 namespace net { | 13 namespace net { |
| 12 | 14 |
| 13 // The PATH_CLOSE frame is used to explicitly close a path. Both endpoints can | 15 // 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 | 16 // 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 | 17 // 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 | 18 // 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 | 19 // closed path are marked as retransmissions which will be transmitted on other |
| 18 // paths. | 20 // paths. |
| 19 struct QUIC_EXPORT_PRIVATE QuicPathCloseFrame { | 21 struct QUIC_EXPORT_PRIVATE QuicPathCloseFrame { |
| 20 QuicPathCloseFrame() {} | 22 QuicPathCloseFrame() {} |
| 21 explicit QuicPathCloseFrame(QuicPathId path_id); | 23 explicit QuicPathCloseFrame(QuicPathId path_id); |
| 22 | 24 |
| 23 friend QUIC_EXPORT_PRIVATE std::ostream& operator<<( | 25 friend QUIC_EXPORT_PRIVATE std::ostream& operator<<( |
| 24 std::ostream& os, | 26 std::ostream& os, |
| 25 const QuicPathCloseFrame& p); | 27 const QuicPathCloseFrame& p); |
| 26 | 28 |
| 27 QuicPathId path_id; | 29 QuicPathId path_id; |
| 28 }; | 30 }; |
| 29 | 31 |
| 30 } // namespace net | 32 } // namespace net |
| 31 | 33 |
| 32 #endif // NET_QUIC_CORE_FRAMES_QUIC_PATH_CLOSE_FRAME_H_ | 34 #endif // NET_QUIC_CORE_FRAMES_QUIC_PATH_CLOSE_FRAME_H_ |
| OLD | NEW |