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

Unified Diff: net/tools/quic/quic_server.cc

Issue 352253002: Added ProcessPacketInterface interface and QuicDispatcher is derived (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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_server.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_server.cc
diff --git a/net/tools/quic/quic_server.cc b/net/tools/quic/quic_server.cc
index be3d9fbd128178a8161294247535f455dd3053c6..40e389cd4ef863a18f4976fe37bc01e7d6d1c62c 100644
--- a/net/tools/quic/quic_server.cc
+++ b/net/tools/quic/quic_server.cc
@@ -215,7 +215,7 @@ void QuicServer::OnEvent(int fd, EpollEvent* event) {
/* static */
bool QuicServer::ReadAndDispatchSinglePacket(int fd,
int port,
- QuicDispatcher* dispatcher,
+ ProcessPacketInterface* processor,
uint32* packets_dropped) {
// Allocate some extra space so we can send an error if the client goes over
// the limit.
@@ -235,7 +235,7 @@ bool QuicServer::ReadAndDispatchSinglePacket(int fd,
QuicEncryptedPacket packet(buf, bytes_read, false);
IPEndPoint server_address(server_ip, port);
- dispatcher->ProcessPacket(server_address, client_address, packet);
+ processor->ProcessPacket(server_address, client_address, packet);
return true;
}
« no previous file with comments | « net/tools/quic/quic_server.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698