| 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_GOAWAY_FRAME_H_ | 5 #ifndef NET_QUIC_CORE_FRAMES_QUIC_GOAWAY_FRAME_H_ | 
| 6 #define NET_QUIC_CORE_FRAMES_QUIC_GOAWAY_FRAME_H_ | 6 #define NET_QUIC_CORE_FRAMES_QUIC_GOAWAY_FRAME_H_ | 
| 7 | 7 | 
|  | 8 #include <ostream> | 
| 8 #include <string> | 9 #include <string> | 
| 9 | 10 | 
| 10 #include "net/quic/core/quic_error_codes.h" | 11 #include "net/quic/core/quic_error_codes.h" | 
| 11 #include "net/quic/core/quic_types.h" | 12 #include "net/quic/core/quic_types.h" | 
| 12 #include "net/quic/platform/api/quic_export.h" | 13 #include "net/quic/platform/api/quic_export.h" | 
| 13 | 14 | 
| 14 namespace net { | 15 namespace net { | 
| 15 | 16 | 
| 16 struct QUIC_EXPORT_PRIVATE QuicGoAwayFrame { | 17 struct QUIC_EXPORT_PRIVATE QuicGoAwayFrame { | 
| 17   QuicGoAwayFrame(); | 18   QuicGoAwayFrame(); | 
| 18   QuicGoAwayFrame(QuicErrorCode error_code, | 19   QuicGoAwayFrame(QuicErrorCode error_code, | 
| 19                   QuicStreamId last_good_stream_id, | 20                   QuicStreamId last_good_stream_id, | 
| 20                   const std::string& reason); | 21                   const std::string& reason); | 
| 21 | 22 | 
| 22   friend QUIC_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, | 23   friend QUIC_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, | 
| 23                                                       const QuicGoAwayFrame& g); | 24                                                       const QuicGoAwayFrame& g); | 
| 24 | 25 | 
| 25   QuicErrorCode error_code; | 26   QuicErrorCode error_code; | 
| 26   QuicStreamId last_good_stream_id; | 27   QuicStreamId last_good_stream_id; | 
| 27   std::string reason_phrase; | 28   std::string reason_phrase; | 
| 28 }; | 29 }; | 
| 29 | 30 | 
| 30 }  // namespace net | 31 }  // namespace net | 
| 31 | 32 | 
| 32 #endif  // NET_QUIC_CORE_FRAMES_QUIC_GOAWAY_FRAME_H_ | 33 #endif  // NET_QUIC_CORE_FRAMES_QUIC_GOAWAY_FRAME_H_ | 
| OLD | NEW | 
|---|