Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1354)

Side by Side Diff: net/quic/core/frames/quic_rst_stream_frame.h

Issue 2566703002: Various formatting cleanups to net/quic/core/frames (Closed)
Patch Set: Fix Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_RST_STREAM_FRAME_H_ 5 #ifndef NET_QUIC_CORE_FRAMES_QUIC_RST_STREAM_FRAME_H_
6 #define NET_QUIC_CORE_FRAMES_QUIC_RST_STREAM_FRAME_H_ 6 #define NET_QUIC_CORE_FRAMES_QUIC_RST_STREAM_FRAME_H_
7 7
8 #include <ostream>
9
8 #include "net/quic/core/quic_error_codes.h" 10 #include "net/quic/core/quic_error_codes.h"
9 #include "net/quic/core/quic_types.h" 11 #include "net/quic/core/quic_types.h"
10 #include "net/quic/platform/api/quic_export.h" 12 #include "net/quic/platform/api/quic_export.h"
11 13
12 namespace net { 14 namespace net {
13 15
14 struct QUIC_EXPORT_PRIVATE QuicRstStreamFrame { 16 struct QUIC_EXPORT_PRIVATE QuicRstStreamFrame {
15 QuicRstStreamFrame(); 17 QuicRstStreamFrame();
16 QuicRstStreamFrame(QuicStreamId stream_id, 18 QuicRstStreamFrame(QuicStreamId stream_id,
17 QuicRstStreamErrorCode error_code, 19 QuicRstStreamErrorCode error_code,
18 QuicStreamOffset bytes_written); 20 QuicStreamOffset bytes_written);
19 21
20 friend QUIC_EXPORT_PRIVATE std::ostream& operator<<( 22 friend QUIC_EXPORT_PRIVATE std::ostream& operator<<(
21 std::ostream& os, 23 std::ostream& os,
22 const QuicRstStreamFrame& r); 24 const QuicRstStreamFrame& r);
23 25
24 QuicStreamId stream_id; 26 QuicStreamId stream_id;
25 QuicRstStreamErrorCode error_code; 27 QuicRstStreamErrorCode error_code;
26 28
27 // Used to update flow control windows. On termination of a stream, both 29 // Used to update flow control windows. On termination of a stream, both
28 // endpoints must inform the peer of the number of bytes they have sent on 30 // endpoints must inform the peer of the number of bytes they have sent on
29 // that stream. This can be done through normal termination (data packet with 31 // that stream. This can be done through normal termination (data packet with
30 // FIN) or through a RST. 32 // FIN) or through a RST.
31 QuicStreamOffset byte_offset; 33 QuicStreamOffset byte_offset;
32 }; 34 };
33 35
34 } // namespace net 36 } // namespace net
35 37
36 #endif // NET_QUIC_CORE_FRAMES_QUIC_RST_STREAM_FRAME_H_ 38 #endif // NET_QUIC_CORE_FRAMES_QUIC_RST_STREAM_FRAME_H_
OLDNEW
« no previous file with comments | « net/quic/core/frames/quic_path_close_frame.h ('k') | net/quic/core/frames/quic_stop_waiting_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698