wub | f975eac | 2019-08-19 19:41:01 -0700 | [diff] [blame] | 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_QBONE_QBONE_CLIENT_INTERFACE_H_ |
| 6 | #define QUICHE_QUIC_QBONE_QBONE_CLIENT_INTERFACE_H_ |
| 7 | |
| 8 | #include <cstdint> |
| 9 | |
dmcardle | d70b99e | 2019-12-12 09:52:39 -0800 | [diff] [blame] | 10 | #include "net/third_party/quiche/src/common/platform/api/quiche_string_piece.h" |
wub | f975eac | 2019-08-19 19:41:01 -0700 | [diff] [blame] | 11 | |
| 12 | namespace quic { |
| 13 | |
| 14 | // An interface that includes methods to interact with a QBONE client. |
| 15 | class QboneClientInterface { |
| 16 | public: |
| 17 | virtual ~QboneClientInterface() {} |
| 18 | // Accepts a given packet from the network and sends the packet down to the |
| 19 | // QBONE connection. |
dmcardle | d70b99e | 2019-12-12 09:52:39 -0800 | [diff] [blame] | 20 | virtual void ProcessPacketFromNetwork(quiche::QuicheStringPiece packet) = 0; |
wub | f975eac | 2019-08-19 19:41:01 -0700 | [diff] [blame] | 21 | }; |
| 22 | |
| 23 | } // namespace quic |
| 24 | |
| 25 | #endif // QUICHE_QUIC_QBONE_QBONE_CLIENT_INTERFACE_H_ |