OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_TOOLS_QUIC_QUIC_PROCESS_PACKET_INTERFACE_H_ | 5 #ifndef NET_TOOLS_QUIC_QUIC_PROCESS_PACKET_INTERFACE_H_ |
6 #define NET_TOOLS_QUIC_QUIC_PROCESS_PACKET_INTERFACE_H_ | 6 #define NET_TOOLS_QUIC_QUIC_PROCESS_PACKET_INTERFACE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "net/base/ip_endpoint.h" | 9 #include "net/base/ip_endpoint.h" |
10 #include "net/quic/quic_protocol.h" | 10 #include "net/quic/core/quic_protocol.h" |
11 | 11 |
12 namespace net { | 12 namespace net { |
13 | 13 |
14 // A class to process each incoming packet. | 14 // A class to process each incoming packet. |
15 class ProcessPacketInterface { | 15 class ProcessPacketInterface { |
16 public: | 16 public: |
17 virtual ~ProcessPacketInterface() {} | 17 virtual ~ProcessPacketInterface() {} |
18 virtual void ProcessPacket(const IPEndPoint& server_address, | 18 virtual void ProcessPacket(const IPEndPoint& server_address, |
19 const IPEndPoint& client_address, | 19 const IPEndPoint& client_address, |
20 const QuicReceivedPacket& packet) = 0; | 20 const QuicReceivedPacket& packet) = 0; |
21 }; | 21 }; |
22 | 22 |
23 } // namespace net | 23 } // namespace net |
24 | 24 |
25 #endif // NET_TOOLS_QUIC_QUIC_PROCESS_PACKET_INTERFACE_H_ | 25 #endif // NET_TOOLS_QUIC_QUIC_PROCESS_PACKET_INTERFACE_H_ |
OLD | NEW |