blob: cefce2d73449f804cdd2409da5874596783a23dc [file] [log] [blame]
QUICHE teama6ef0a62019-03-07 20:34:33 -05001// 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
12namespace quic {
13
14// A class to process each incoming packet.
15class 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_