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

Unified Diff: net/quic/quic_server_session.h

Issue 340433002: Port QuicServer to Chrome network stack (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Additional comments 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
Index: net/quic/quic_server_session.h
diff --git a/net/quic/quic_server_session.h b/net/quic/quic_server_session.h
index 30ac08c80df802cfe3dea105300121f5e6cfeb3c..15b2ee9fdf742293f002bc48cf426a883d0058c1 100644
--- a/net/quic/quic_server_session.h
+++ b/net/quic/quic_server_session.h
@@ -13,6 +13,7 @@
#include "base/basictypes.h"
#include "base/containers/hash_tables.h"
#include "base/memory/scoped_ptr.h"
+#include "net/quic/quic_connection_packet_writer_wrapper.h"
#include "net/quic/quic_crypto_server_stream.h"
#include "net/quic/quic_protocol.h"
#include "net/quic/quic_session.h"
@@ -43,8 +44,10 @@ class QuicServerSessionVisitor {
class QuicServerSession : public QuicSession {
public:
+ // Takes ownership of connection_packet_writer
QuicServerSession(const QuicConfig& config,
QuicConnection* connection,
+ QuicConnectionPacketWriterWrapper* connection_packet_writer,
QuicServerSessionVisitor* visitor);
// Override the base class to notify the owner of the connection close.
@@ -77,6 +80,7 @@ class QuicServerSession : public QuicSession {
friend class test::QuicServerSessionPeer;
scoped_ptr<QuicCryptoServerStream> crypto_stream_;
+ scoped_ptr<QuicConnectionPacketWriterWrapper> connection_packet_writer_;
QuicServerSessionVisitor* visitor_;
DISALLOW_COPY_AND_ASSIGN(QuicServerSession);

Powered by Google App Engine
This is Rietveld 408576698