• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_SENDER_DELEGATE_H_
6 #define QUICHE_QUIC_CORE_QPACK_QPACK_STREAM_SENDER_DELEGATE_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 writes encoder/decoder data to peer.
14 class QUIC_EXPORT_PRIVATE QpackStreamSenderDelegate {
15  public:
16   virtual ~QpackStreamSenderDelegate() = default;
17 
18   // Write data on the unidirectional stream.
19   virtual void WriteStreamData(absl::string_view data) = 0;
20 
21   // Return the number of bytes buffered due to underlying stream being blocked.
22   virtual uint64_t NumBytesBuffered() const = 0;
23 };
24 
25 }  // namespace quic
26 
27 #endif  // QUICHE_QUIC_CORE_QPACK_QPACK_STREAM_SENDER_DELEGATE_H_
28