summaryrefslogtreecommitdiff
path: root/chromium/net/third_party/quiche/src/quic/qbone/qbone_client_interface.h
blob: 8b31cceb65dafb4f5dea0f7e5e3163356a1f2a02 (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
// Copyright (c) 2019 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 QUICHE_QUIC_QBONE_QBONE_CLIENT_INTERFACE_H_
#define QUICHE_QUIC_QBONE_QBONE_CLIENT_INTERFACE_H_

#include <cstdint>

#include "absl/strings/string_view.h"

namespace quic {

// An interface that includes methods to interact with a QBONE client.
class QboneClientInterface {
 public:
  virtual ~QboneClientInterface() {}
  // Accepts a given packet from the network and sends the packet down to the
  // QBONE connection.
  virtual void ProcessPacketFromNetwork(absl::string_view packet) = 0;
};

}  // namespace quic

#endif  // QUICHE_QUIC_QBONE_QBONE_CLIENT_INTERFACE_H_