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

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

Issue 467963002: Refactoring: Create per-connection packet writers in QuicDispatcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation Created 6 years, 4 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
Index: net/tools/quic/quic_client.h
diff --git a/net/tools/quic/quic_client.h b/net/tools/quic/quic_client.h
index a4fb6c31bd06343f1c2be696bb12f5275b2a95ff..9665e38fa77ad191d688d1632094482343642135 100644
--- a/net/tools/quic/quic_client.h
+++ b/net/tools/quic/quic_client.h
@@ -188,6 +188,18 @@ class QuicClient : public EpollCallbackInterface,
private:
friend class net::tools::test::QuicClientPeer;
+ // A packet writer factory that always returns the same writer
+ class DummyPacketWriterFactory : public QuicConnection::PacketWriterFactory {
+ public:
+ DummyPacketWriterFactory(QuicPacketWriter* writer);
+ virtual ~DummyPacketWriterFactory();
+
+ virtual QuicPacketWriter* Create(QuicConnection* connection) const override;
wtc 2014/08/13 21:01:34 Change "override" to "OVERRIDE".
dmz 2014/08/14 17:22:42 Done.
+
+ private:
+ QuicPacketWriter* writer_;
+ };
+
// Used during initialization: creates the UDP socket FD, sets socket options,
// and binds the socket to our address.
bool CreateUDPSocket();

Powered by Google App Engine
This is Rietveld 408576698