OLD | NEW |
(Empty) | |
| 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 NET_TOOLS_QUIC_QUIC_PROCESS_PACKET_INTERFACE_H_ |
| 6 #define NET_TOOLS_QUIC_QUIC_PROCESS_PACKET_INTERFACE_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "net/base/ip_endpoint.h" |
| 10 #include "net/quic/quic_protocol.h" |
| 11 |
| 12 namespace net { |
| 13 |
| 14 namespace tools { |
| 15 |
| 16 // A class to process each incoming packet. |
| 17 class ProcessPacketInterface { |
| 18 public: |
| 19 virtual ~ProcessPacketInterface() {} |
| 20 virtual void ProcessPacket(const IPEndPoint& server_address, |
| 21 const IPEndPoint& client_address, |
| 22 const QuicEncryptedPacket& packet) = 0; |
| 23 }; |
| 24 |
| 25 } // namespace tools |
| 26 |
| 27 } // namespace net |
| 28 |
| 29 #endif // NET_TOOLS_QUIC_QUIC_PROCESS_PACKET_INTERFACE_H_ |
OLD | NEW |