summaryrefslogtreecommitdiff
path: root/chromium/net/quic/core/frames/quic_ietf_blocked_frame.h
blob: b0474f2cd11f872a798cc559ac40ee816bc2a8d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef NET_QUIC_CORE_FRAMES_QUIC_IETF_BLOCKED_FRAME_H_
#define NET_QUIC_CORE_FRAMES_QUIC_IETF_BLOCKED_FRAME_H_

#include <ostream>

#include "net/quic/core/frames/quic_control_frame.h"

namespace net {

// IETF format BLOCKED frame.
// The sender uses the BLOCKED frame to inform the receiver that the
// sender is unable to send data because of connection-level flow control.
struct QUIC_EXPORT_PRIVATE QuicIetfBlockedFrame : public QuicControlFrame {
  QuicIetfBlockedFrame();
  QuicIetfBlockedFrame(QuicControlFrameId control_frame_id,
                       QuicStreamOffset offset);

  friend QUIC_EXPORT_PRIVATE std::ostream& operator<<(
      std::ostream& os,
      const QuicIetfBlockedFrame& frame);

  // Offset at which the BLOCKED applies
  QuicStreamOffset offset;
};

}  // namespace net

#endif  // NET_QUIC_CORE_FRAMES_QUIC_IETF_BLOCKED_FRAME_H_