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

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

Issue 2537773006: Extract a QuicSpdyServerStreamBase class for code sharing between QuicSimpleServerStream and GfeQui… (Closed)
Patch Set: Created 4 years 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_simple_server_stream.cc ('k') | net/tools/quic/quic_spdy_server_stream_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_spdy_server_stream_base.h
diff --git a/net/tools/quic/quic_spdy_server_stream_base.h b/net/tools/quic/quic_spdy_server_stream_base.h
new file mode 100644
index 0000000000000000000000000000000000000000..ebadee1318e38e044d80e3dfaca03138531a6133
--- /dev/null
+++ b/net/tools/quic/quic_spdy_server_stream_base.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_QUIC_CORE_QUIC_SPDY_SERVER_STREAM_BASE_H_
+#define NET_QUIC_CORE_QUIC_SPDY_SERVER_STREAM_BASE_H_
+
+#include "net/quic/core/quic_spdy_stream.h"
+
+namespace net {
+
+class QuicSpdyServerStreamBase : public QuicSpdyStream {
Zhongyi Shi 2016/12/01 21:58:17 nit: you might need to add NET_EXPORT_PRIVATE eith
+ public:
+ QuicSpdyServerStreamBase(QuicStreamId id, QuicSpdySession* session);
+
+ // Override the base class to send QUIC_STREAM_NO_ERROR to the peer
+ // when the stream has not received all the data.
+ void CloseWriteSide() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(QuicSpdyServerStreamBase);
+};
+
+} // namespace net
+
+#endif // NET_QUIC_CORE_QUIC_SPDY_SERVER_STREAM_BASE_H_
« no previous file with comments | « net/tools/quic/quic_simple_server_stream.cc ('k') | net/tools/quic/quic_spdy_server_stream_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698