xref: /aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/quic/core/qpack/qpack_stream_receiver.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright (c) 2019 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef QUICHE_QUIC_CORE_QPACK_QPACK_STREAM_RECEIVER_H_
6 #define QUICHE_QUIC_CORE_QPACK_QPACK_STREAM_RECEIVER_H_
7 
8 #include "absl/strings/string_view.h"
9 #include "quiche/quic/platform/api/quic_export.h"
10 
11 namespace quic {
12 
13 // This interface decodes QPACK data that are received on a QpackReceiveStream.
14 class QUICHE_EXPORT QpackStreamReceiver {
15  public:
16   virtual ~QpackStreamReceiver() = default;
17 
18   // Decode data.
19   virtual void Decode(absl::string_view data) = 0;
20 };
21 
22 }  // namespace quic
23 
24 #endif  // QUICHE_QUIC_CORE_QPACK_QPACK_STREAM_RECEIVER_H_
25