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

Side by Side Diff: net/quic/core/frames/quic_blocked_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
« no previous file with comments | « net/quic/core/frames/quic_ack_frame.h ('k') | net/quic/core/frames/quic_frame.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BLOCKED_FRAME_H_ 5 #ifndef NET_QUIC_CORE_FRAMES_QUIC_BLOCKED_FRAME_H_
6 #define NET_QUIC_CORE_FRAMES_QUIC_BLOCKED_FRAME_H_ 6 #define NET_QUIC_CORE_FRAMES_QUIC_BLOCKED_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 BLOCKED frame is used to indicate to the remote endpoint that this 15 // The BLOCKED frame is used to indicate to the remote endpoint that this
14 // endpoint believes itself to be flow-control blocked but otherwise ready to 16 // endpoint believes itself to be flow-control blocked but otherwise ready to
15 // send data. The BLOCKED frame is purely advisory and optional. 17 // send data. The BLOCKED frame is purely advisory and optional.
16 // Based on SPDY's BLOCKED frame (undocumented as of 2014-01-28). 18 // Based on SPDY's BLOCKED frame (undocumented as of 2014-01-28).
17 struct QUIC_EXPORT_PRIVATE QuicBlockedFrame { 19 struct QUIC_EXPORT_PRIVATE QuicBlockedFrame {
18 QuicBlockedFrame() {} 20 QuicBlockedFrame() {}
19 explicit QuicBlockedFrame(QuicStreamId stream_id); 21 explicit QuicBlockedFrame(QuicStreamId stream_id);
20 22
21 friend QUIC_EXPORT_PRIVATE std::ostream& operator<<( 23 friend QUIC_EXPORT_PRIVATE std::ostream& operator<<(
22 std::ostream& os, 24 std::ostream& os,
23 const QuicBlockedFrame& b); 25 const QuicBlockedFrame& b);
24 26
25 // The stream this frame applies to. 0 is a special case meaning the overall 27 // The stream this frame applies to. 0 is a special case meaning the overall
26 // connection rather than a specific stream. 28 // connection rather than a specific stream.
27 QuicStreamId stream_id; 29 QuicStreamId stream_id;
28 }; 30 };
29 31
30 } // namespace net 32 } // namespace net
31 33
32 #endif // NET_QUIC_CORE_FRAMES_QUIC_BLOCKED_FRAME_H_ 34 #endif // NET_QUIC_CORE_FRAMES_QUIC_BLOCKED_FRAME_H_
OLDNEW
« no previous file with comments | « net/quic/core/frames/quic_ack_frame.h ('k') | net/quic/core/frames/quic_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698