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_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 "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 BLOCKED frame is used to indicate to the remote endpoint that this | 13 // 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 | 14 // endpoint believes itself to be flow-control blocked but otherwise ready to |
15 // send data. The BLOCKED frame is purely advisory and optional. | 15 // send data. The BLOCKED frame is purely advisory and optional. |
16 // Based on SPDY's BLOCKED frame (undocumented as of 2014-01-28). | 16 // Based on SPDY's BLOCKED frame (undocumented as of 2014-01-28). |
17 struct NET_EXPORT_PRIVATE QuicBlockedFrame { | 17 struct QUIC_EXPORT_PRIVATE QuicBlockedFrame { |
18 QuicBlockedFrame() {} | 18 QuicBlockedFrame() {} |
19 explicit QuicBlockedFrame(QuicStreamId stream_id); | 19 explicit QuicBlockedFrame(QuicStreamId stream_id); |
20 | 20 |
21 friend NET_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, | 21 friend QUIC_EXPORT_PRIVATE std::ostream& operator<<( |
22 const QuicBlockedFrame& b); | 22 std::ostream& os, |
| 23 const QuicBlockedFrame& b); |
23 | 24 |
24 // The stream this frame applies to. 0 is a special case meaning the overall | 25 // The stream this frame applies to. 0 is a special case meaning the overall |
25 // connection rather than a specific stream. | 26 // connection rather than a specific stream. |
26 QuicStreamId stream_id; | 27 QuicStreamId stream_id; |
27 }; | 28 }; |
28 | 29 |
29 } // namespace net | 30 } // namespace net |
30 | 31 |
31 #endif // NET_QUIC_CORE_FRAMES_QUIC_BLOCKED_FRAME_H_ | 32 #endif // NET_QUIC_CORE_FRAMES_QUIC_BLOCKED_FRAME_H_ |
OLD | NEW |