| Index: net/tools/quic/quic_packet_reader.h
|
| diff --git a/net/tools/quic/quic_packet_reader.h b/net/tools/quic/quic_packet_reader.h
|
| index 479fc6d9097f41764d49cf4278d803de145f8df0..5e2c98e6d1e3108cac93226141c9fe3d682ae198 100644
|
| --- a/net/tools/quic/quic_packet_reader.h
|
| +++ b/net/tools/quic/quic_packet_reader.h
|
| @@ -27,9 +27,16 @@ namespace test {
|
| class QuicServerPeer;
|
| } // namespace test
|
|
|
| -class ProcessPacketInterface;
|
| class QuicDispatcher;
|
|
|
| +class ProcessPacketInterface {
|
| + public:
|
| + virtual ~ProcessPacketInterface() {}
|
| + virtual void ProcessPacket(const IPEndPoint& server_address,
|
| + const IPEndPoint& client_address,
|
| + const QuicEncryptedPacket& packet) = 0;
|
| +};
|
| +
|
| class QuicPacketReader {
|
| public:
|
| QuicPacketReader();
|
| @@ -61,6 +68,8 @@ class QuicPacketReader {
|
| // cbuf_ is used for ancillary data from the kernel on recvmmsg.
|
| char cbuf_[kSpaceForOverflowAndIp * kNumPacketsPerReadMmsgCall];
|
| // buf_ is used for the data read from the kernel on recvmmsg.
|
| + // TODO(danzh): change it to be a pointer to avoid the allocation on the stack
|
| + // from exceeding maximum allowed frame size.
|
| char buf_[2 * kMaxPacketSize * kNumPacketsPerReadMmsgCall];
|
| // iov_ and mmsg_hdr_ are used to supply cbuf and buf to the recvmmsg call.
|
| iovec iov_[kNumPacketsPerReadMmsgCall];
|
|
|