Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(416)

Unified Diff: net/tools/quic/quic_packet_reader.h

Issue 1333773002: relnote: moves ProcessPacketInterface from quic_dispatcher.h to (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Refactor_QuicAckFrame_missing_packets_101778041
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/quic_dispatcher.h ('k') | net/tools/quic/quic_packet_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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];
« no previous file with comments | « net/tools/quic/quic_dispatcher.h ('k') | net/tools/quic/quic_packet_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698