QUICHE team | a6ef0a6 | 2019-03-07 20:34:33 -0500 | [diff] [blame] | 1 | // Copyright 2015 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_QUIC_PROCESS_PACKET_INTERFACE_H_ |
| 6 | #define QUICHE_QUIC_CORE_QUIC_PROCESS_PACKET_INTERFACE_H_ |
| 7 | |
| 8 | #include "base/macros.h" |
| 9 | #include "net/third_party/quiche/src/quic/core/quic_packets.h" |
| 10 | #include "net/third_party/quiche/src/quic/platform/api/quic_socket_address.h" |
| 11 | |
| 12 | namespace quic { |
| 13 | |
| 14 | // A class to process each incoming packet. |
| 15 | class ProcessPacketInterface { |
| 16 | public: |
| 17 | virtual ~ProcessPacketInterface() {} |
| 18 | virtual void ProcessPacket(const QuicSocketAddress& self_address, |
| 19 | const QuicSocketAddress& peer_address, |
| 20 | const QuicReceivedPacket& packet) = 0; |
| 21 | }; |
| 22 | |
| 23 | } // namespace quic |
| 24 | |
| 25 | #endif // QUICHE_QUIC_CORE_QUIC_PROCESS_PACKET_INTERFACE_H_ |